diff options
author | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-10-16 21:11:29 +0000 |
---|---|---|
committer | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-10-16 21:11:29 +0000 |
commit | fb06154326720e90c5cee4f3dd1d0ff57a34f5b3 (patch) | |
tree | cc2f2933e7a795828dc45967623934d3a58b9973 /channels/iax2-parser.c | |
parent | 8b42787b24549191ee7af71210b0d3ac9183a80c (diff) |
Revert the previous patch since it's braking compilation
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1636 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/iax2-parser.c')
-rwxr-xr-x | channels/iax2-parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c index 1cfce461a..5b78a50c4 100755 --- a/channels/iax2-parser.c +++ b/channels/iax2-parser.c @@ -64,7 +64,7 @@ static void dump_string(char *output, int maxlen, void *value, int len) static void dump_int(char *output, int maxlen, void *value, int len) { if (len == sizeof(unsigned int)) - snprintf(output, maxlen, "%ld", ntohl(*((unsigned int *)value))); + snprintf(output, maxlen, "%d", ntohl(*((unsigned int *)value))); else snprintf(output, maxlen, "Invalid INT"); } @@ -287,7 +287,7 @@ snprintf(tmp, sizeof(tmp), retries, fh->oseqno, fh->iseqno, class, subclass); outputf(tmp); snprintf(tmp, sizeof(tmp), -" Timestamp: %05ldms SCall: %5.5d DCall: %5.5d [%s:%d]\n", +" Timestamp: %05dms SCall: %5.5d DCall: %5.5d [%s:%d]\n", ntohl(fh->ts), ntohs(fh->scallno) & ~IAX_FLAG_FULL, ntohs(fh->dcallno) & ~IAX_FLAG_RETRANS, inet_ntoa(sin->sin_addr), ntohs(sin->sin_port)); |