]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
channels.c: core show channeltypes slicing
authorKevin Harwell <kharwell@digium.com>
Mon, 30 Dec 2013 23:16:04 +0000 (23:16 +0000)
committerKevin Harwell <kharwell@digium.com>
Mon, 30 Dec 2013 23:16:04 +0000 (23:16 +0000)
'core show channeltypes' type column is being sliced, resulting in incomplete
type names.

(closes issue ASTERISK-22919)
Reported by: outtolunc
Patches:
     svn_channel.c.format_15.diff.txt uploaded by outtolunc (license 5198)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@404579 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 8ecbc25fe2d721f06a074191c054d629045a87b0..a42e73f4c4b7a2d0615ee168d96e4a3efc9133e5 100644 (file)
@@ -289,7 +289,7 @@ static const char *party_number_plan2str(int plan)
 /*! \brief Show channel types - CLI command */
 static char *handle_cli_core_show_channeltypes(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 {
-#define FORMAT  "%-10.10s  %-40.40s %-12.12s %-12.12s %-12.12s\n"
+#define FORMAT  "%-15.15s  %-40.40s %-12.12s %-12.12s %-12.12s\n"
        struct chanlist *cl;
        int count_chan = 0;
 
@@ -309,7 +309,7 @@ static char *handle_cli_core_show_channeltypes(struct ast_cli_entry *e, int cmd,
                return CLI_SHOWUSAGE;
 
        ast_cli(a->fd, FORMAT, "Type", "Description",       "Devicestate", "Indications", "Transfer");
-       ast_cli(a->fd, FORMAT, "----------", "-----------", "-----------", "-----------", "--------");
+       ast_cli(a->fd, FORMAT, "-----------", "-----------", "-----------", "-----------", "-----------");
 
        AST_RWLIST_RDLOCK(&backends);
        AST_RWLIST_TRAVERSE(&backends, cl, list) {