[Asterisk-cvs] asterisk/channels chan_zap.c,1.345,1.346

citats at lists.digium.com citats at lists.digium.com
Fri Oct 1 09:24:39 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/home/citats/cvs/asterisk/channels

Modified Files:
	chan_zap.c 
Log Message:
Use event2str consisitently in chan_zap anytime we are printing debug info about an event (bug 2548)

Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.345
retrieving revision 1.346
diff -u -d -r1.345 -r1.346
--- chan_zap.c	30 Sep 2004 15:26:04 -0000	1.345
+++ chan_zap.c	1 Oct 2004 13:26:47 -0000	1.346
@@ -7355,7 +7355,7 @@
 					x = 0;
 					res = ioctl(pri->fds[which], ZT_GETEVENT, &x);
 					if (x) 
-						ast_log(LOG_NOTICE, "PRI got event: %d on %s D-channel of span %d\n", x, pri_order(which), pri->span);
+						ast_log(LOG_NOTICE, "PRI got event: %s (%d) on %s D-channel of span %d\n", event2str(x), x, pri_order(which), pri->span);
 					/* Keep track of alarm state */	
 					if (x == ZT_EVENT_ALARM) {
 						pri->dchanavail[which] &= ~(DCHAN_NOTINALARM | DCHAN_UP);




More information about the svn-commits mailing list