aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-19 17:45:46 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-19 17:45:46 +0000
commit84edbd709c87d87423ce2c48a282dc987a3519d4 (patch)
tree40b39c456f8e28f906fa3d2d64a4f9c0a5467da8 /channels
parent21c2f9dfd0db724a3c9d500c9412f625df30f912 (diff)
sizeof() is compatible with format %d so don't be too
picky on printf formats. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@51309 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_iax2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index d6bcaaaec..9c628786c 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -6352,7 +6352,7 @@ static int socket_process_meta(int packet_len, struct ast_iax2_meta_hdr *meta, s
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 @@ static int socket_process(struct iax2_thread *thread)
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 @@ static int socket_process(struct iax2_thread *thread)
}
/* 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;
}