Fix timestamp to always be unsigned
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2453 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
ce88c6dd08
commit
29b7818ebf
|
@ -298,8 +298,8 @@ snprintf(tmp, sizeof(tmp),
|
||||||
retries, fh->oseqno, fh->iseqno, class, subclass);
|
retries, fh->oseqno, fh->iseqno, class, subclass);
|
||||||
outputf(tmp);
|
outputf(tmp);
|
||||||
snprintf(tmp, sizeof(tmp),
|
snprintf(tmp, sizeof(tmp),
|
||||||
" Timestamp: %05ldms SCall: %5.5d DCall: %5.5d [%s:%d]\n",
|
" Timestamp: %05lums SCall: %5.5d DCall: %5.5d [%s:%d]\n",
|
||||||
(long)ntohl(fh->ts),
|
(unsigned long)ntohl(fh->ts),
|
||||||
ntohs(fh->scallno) & ~IAX_FLAG_FULL, ntohs(fh->dcallno) & ~IAX_FLAG_RETRANS,
|
ntohs(fh->scallno) & ~IAX_FLAG_FULL, ntohs(fh->dcallno) & ~IAX_FLAG_RETRANS,
|
||||||
inet_ntoa(sin->sin_addr), ntohs(sin->sin_port));
|
inet_ntoa(sin->sin_addr), ntohs(sin->sin_port));
|
||||||
outputf(tmp);
|
outputf(tmp);
|
||||||
|
|
Loading…
Reference in New Issue