[Asterisk-code-review] cli: increase channel name column width (asterisk[18])

Michael Bradeen asteriskteam at digium.com
Mon Mar 6 14:53:53 CST 2023


Michael Bradeen has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/19960 )


Change subject: cli: increase channel name column width
......................................................................

cli: increase channel name column width

Increase channel name to 64 characters and location
to 32 characters on cli output.

ASTERISK-30455

Change-Id: Ibec3742ce360ffc93bc56e9984c2a21dabc4d5e1
---
M main/cli.c
1 file changed, 16 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/60/19960/1

diff --git a/main/cli.c b/main/cli.c
index 0386335..94fb32a 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -1098,8 +1098,8 @@
 
 static char *handle_chanlist(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 {
-#define FORMAT_STRING  "%-20.20s %-20.20s %-7.7s %-30.30s\n"
-#define FORMAT_STRING2 "%-20.20s %-20.20s %-7.7s %-30.30s\n"
+#define FORMAT_STRING  "%-64.64s %-32.32s %-7.7s %-30.30s\n"
+#define FORMAT_STRING2 "%-64.64s %-32.32s %-7.7s %-30.30s\n"
 #define CONCISE_FORMAT_STRING  "%s!%s!%s!%d!%s!%s!%s!%s!%s!%s!%d!%s!%s!%s\n"
 #define VERBOSE_FORMAT_STRING  "%-20.20s %-20.20s %-16.16s %4d %-7.7s %-12.12s %-25.25s %-15.15s %8.8s %-11.11s %-11.11s %-20.20s\n"
 #define VERBOSE_FORMAT_STRING2 "%-20.20s %-20.20s %-16.16s %-4.4s %-7.7s %-12.12s %-25.25s %-15.15s %8.8s %-11.11s %-11.11s %-20.20s\n"

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/19960
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: Ibec3742ce360ffc93bc56e9984c2a21dabc4d5e1
Gerrit-Change-Number: 19960
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Bradeen <mbradeen at sangoma.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20230306/6fe056a5/attachment.html>


More information about the asterisk-code-review mailing list