Fix timestamp to always be unsigned
[asterisk/asterisk.git] / channels / iax2-parser.c
index 32d40d1..156ed1d 100755 (executable)
@@ -298,8 +298,8 @@ 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",
-       (long)ntohl(fh->ts),
+"   Timestamp: %05lums  SCall: %5.5d  DCall: %5.5d [%s:%d]\n",
+       (unsigned long)ntohl(fh->ts),
        ntohs(fh->scallno) & ~IAX_FLAG_FULL, ntohs(fh->dcallno) & ~IAX_FLAG_RETRANS,
                inet_ntoa(sin->sin_addr), ntohs(sin->sin_port));
        outputf(tmp);