From: Moises Silva Date: Sun, 18 Mar 2012 22:54:54 +0000 (-0400) Subject: freetdm: ftmod_zt - Print which DAHDI event number is failing to be processed X-Git-Tag: v1.2-rc1~19^2^2~68^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf652b567f00c1ffb63ddf4f82306436d98fdc57;p=thirdparty%2Ffreeswitch.git freetdm: ftmod_zt - Print which DAHDI event number is failing to be processed --- diff --git a/libs/freetdm/src/ftmod/ftmod_zt/ftmod_zt.c b/libs/freetdm/src/ftmod/ftmod_zt/ftmod_zt.c index 0282b222c8..62bdf29425 100644 --- a/libs/freetdm/src/ftmod/ftmod_zt/ftmod_zt.c +++ b/libs/freetdm/src/ftmod/ftmod_zt/ftmod_zt.c @@ -1176,7 +1176,7 @@ FIO_CHANNEL_NEXT_EVENT_FUNCTION(zt_channel_next_event) /* the core already locked the channel for us, so it's safe to call zt_channel_process_event() here */ if ((zt_channel_process_event(ftdmchan, &event_id, zt_event_id)) != FTDM_SUCCESS) { - ftdm_log_chan_msg(ftdmchan, FTDM_LOG_ERROR, "Failed to process event from channel\n"); + ftdm_log_chan(ftdmchan, FTDM_LOG_ERROR, "Failed to process DAHDI event %d from channel\n", zt_event_id); return FTDM_FAIL; } @@ -1210,7 +1210,7 @@ FIO_SPAN_NEXT_EVENT_FUNCTION(zt_next_event) ftdm_channel_lock(fchan); if ((zt_channel_process_event(fchan, &event_id, zt_event_id)) != FTDM_SUCCESS) { - ftdm_log_chan_msg(fchan, FTDM_LOG_ERROR, "Failed to process event from channel\n"); + ftdm_log_chan(fchan, FTDM_LOG_ERROR, "Failed to process DAHDI event %d from channel\n", zt_event_id); ftdm_channel_unlock(fchan); return FTDM_FAIL; }