[asterisk-commits] rizzo: trunk r51309 - /trunk/channels/chan_iax2.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Jan 19 10:45:46 MST 2007
Author: rizzo
Date: Fri Jan 19 11:45:46 2007
New Revision: 51309
URL: http://svn.digium.com/view/asterisk?view=rev&rev=51309
Log:
sizeof() is compatible with format %d so don't be too
picky on printf formats.
Modified:
trunk/channels/chan_iax2.c
Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=51309&r1=51308&r2=51309
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Fri Jan 19 11:45:46 2007
@@ -6352,7 +6352,7 @@
return 1;
if (packet_len < (sizeof(*meta) + sizeof(*mth))) {
- ast_log(LOG_WARNING, "midget meta trunk packet received (%d of %zd min)\n", packet_len,
+ ast_log(LOG_WARNING, "midget meta trunk packet received (%d of %d min)\n", packet_len,
sizeof(*meta) + sizeof(*mth));
return 1;
}
@@ -6523,7 +6523,7 @@
memcpy(&sin, &thread->iosin, sizeof(sin));
if (res < sizeof(*mh)) {
- ast_log(LOG_WARNING, "midget packet received (%d of %zd min)\n", res, sizeof(*mh));
+ ast_log(LOG_WARNING, "midget packet received (%d of %d min)\n", res, sizeof(*mh));
return 1;
}
if ((vh->zeros == 0) && (ntohs(vh->callno) & 0x8000)) {
@@ -6684,7 +6684,7 @@
}
/* A full frame */
if (res < sizeof(*fh)) {
- ast_log(LOG_WARNING, "midget packet received (%d of %zd min)\n", res, sizeof(*fh));
+ ast_log(LOG_WARNING, "midget packet received (%d of %d min)\n", res, sizeof(*fh));
ast_mutex_unlock(&iaxsl[fr->callno]);
return 1;
}
More information about the asterisk-commits
mailing list