Use event2str consisitently in chan_zap anytime we are printing debug info about...
authorJames Golovich <james@gnuinter.net>
Fri, 1 Oct 2004 13:26:47 +0000 (13:26 +0000)
committerJames Golovich <james@gnuinter.net>
Fri, 1 Oct 2004 13:26:47 +0000 (13:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3871 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 5997ac2..c5915ee 100755 (executable)
@@ -7355,7 +7355,7 @@ static void *pri_dchannel(void *vpri)
                                        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);