[Asterisk-cvs] asterisk/channels chan_zap.c,1.160,1.161
malcolmd at lists.digium.com
malcolmd at lists.digium.com
Thu Jan 8 23:34:44 CST 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv11644/channels
Modified Files:
chan_zap.c
Log Message:
Bug #710: Format fix for "zap show channels"
Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -d -r1.160 -r1.161
--- chan_zap.c 9 Jan 2004 05:13:50 -0000 1.160
+++ chan_zap.c 9 Jan 2004 05:26:27 -0000 1.161
@@ -6708,15 +6708,15 @@
static int zap_show_channels(int fd, int argc, char **argv)
{
-#define FORMAT "%3d %-10.10s %-10.10s %-10.10s %-8.8s\n"
-#define FORMAT2 "%3s %-10.10s %-10.10s %-10.10s %-8.8s\n"
+#define FORMAT "%4d %-10.10s %-15.15s %-10.10s %-20.20s\n"
+#define FORMAT2 "%4s %-10.10s %-15.15s %-10.10s %-20.20s\n"
struct zt_pvt *tmp = NULL;
if (argc != 3)
return RESULT_SHOWUSAGE;
ast_mutex_lock(&iflock);
- ast_cli(fd, FORMAT2, "Chan. Num.", "Extension", "Context", "Language", "MusicOnHold");
+ ast_cli(fd, FORMAT2, "Chan", "Extension", "Context", "Language", "MusicOnHold");
tmp = iflist;
while (tmp) {
More information about the svn-commits
mailing list