diff options
author | Kevin Harwell <kharwell@digium.com> | 2013-12-30 23:25:53 +0000 |
---|---|---|
committer | Kevin Harwell <kharwell@digium.com> | 2013-12-30 23:25:53 +0000 |
commit | 20d02c1288022677640cca6cfd297c2799b9b36e (patch) | |
tree | 9ccf517c12ad56fb0c440f4372de05af19401d3e /main | |
parent | 33ec6f9d0377c9dc1fb33a7d69c4857ebea222dd (diff) |
channels.c: core show channeltypes slicing
'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)
........
Merged revisions 404579 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 404581 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@404582 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/channel.c b/main/channel.c index 9ff3d0746..567d8c621 100644 --- a/main/channel.c +++ b/main/channel.c @@ -275,7 +275,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; @@ -295,7 +295,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) { |