aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-26 17:40:02 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-26 17:40:02 +0000
commit88b11a8da58bbde8263bae6a68539898191e8c30 (patch)
tree87b5a49855776eb68969e6c8dbde769ae985e669 /main
parent1bc7ad599c3fb70a6d23f7334e2550dfd007c051 (diff)
modify 'test show registered' cli output format
In order to improve readability, the output from 'test show registered' has been modified to truncate fields to fit within the format output if they are over a certain length. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@243242 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/test.c b/main/test.c
index 754f77001..d348b0252 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 "%-15s %-20s %-30s %-10s\n"
+#define FORMAT "%-20.20s %-20.20s %-30.30s %-10.10s\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 %-15s %-20s %-30s\n"
+#define FORMAT_RES_ALL "%s%s %-20.20s %-20.20s %-30.30s\n"
static const char * const option1[] = { "all", "failed", "passed", NULL };
char result_buf[32] = { 0 };
struct ast_test *test = NULL;