diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-04 15:36:33 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-04 15:36:33 +0000 |
commit | 78b90be27cf2279b56ee3c4ee911d9cff0a5b84c (patch) | |
tree | 83f26d119e57492237a79b634f10c7b803850f53 /main | |
parent | 99925913963579c27e4b6e9061b370f399a9008f (diff) |
fix truncated format string in 'test show registered'
When using the 'test show registered' cli command the 'Test Results'
category was truncating the last few characters making it look like
'Test Resul'. I also expanded other parts of the format to better
represent how long function names and categories will likely be.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@244688 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/test.c b/main/test.c index d348b0252..ed48042dc 100644 --- a/main/test.c +++ b/main/test.c @@ -570,7 +570,7 @@ static struct ast_test *test_alloc(ast_test_cb_t *cb) /* CLI commands */ static char *test_cli_show_registered(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) { -#define FORMAT "%-20.20s %-20.20s %-30.30s %-10.10s\n" +#define FORMAT "%-30.30s %-25.25s %-40.40s %-13.13s\n" static const char * const option1[] = { "all", "category", NULL }; static const char * const option2[] = { "name", NULL }; struct ast_test *test = NULL; @@ -681,7 +681,7 @@ static char *test_cli_execute_registered(struct ast_cli_entry *e, int cmd, struc static char *test_cli_show_results(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) { -#define FORMAT_RES_ALL "%s%s %-20.20s %-20.20s %-30.30s\n" +#define FORMAT_RES_ALL "%s%s %-30.30s %-25.25s %-40.40s\n" static const char * const option1[] = { "all", "failed", "passed", NULL }; char result_buf[32] = { 0 }; struct ast_test *test = NULL; |