summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/mbuf.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-03-14 01:47:19 +0000
committerbrian <brian@FreeBSD.org>2000-03-14 01:47:19 +0000
commit19ff2ab337c997a28964c88f5124a07dff48a0e4 (patch)
tree0966e729b0750c437da397c795c45cd9466d7780 /usr.sbin/ppp/mbuf.c
parent84a11d130e87abbc875a0c5c29e560b04560c73c (diff)
downloadFreeBSD-src-19ff2ab337c997a28964c88f5124a07dff48a0e4.zip
FreeBSD-src-19ff2ab337c997a28964c88f5124a07dff48a0e4.tar.gz
Fix some printf-style argument bugs
Diffstat (limited to 'usr.sbin/ppp/mbuf.c')
-rw-r--r--usr.sbin/ppp/mbuf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/mbuf.c b/usr.sbin/ppp/mbuf.c
index 5bd58dc..5d51358 100644
--- a/usr.sbin/ppp/mbuf.c
+++ b/usr.sbin/ppp/mbuf.c
@@ -112,8 +112,8 @@ m_get(size_t m_len, int type)
*/
*mb = (struct mbucket *)malloc(BUCKET_CHUNK * size);
if (*mb == NULL) {
- log_Printf(LogALERT, "Failed to allocate memory (%u)\n",
- BUCKET_CHUNK * size);
+ log_Printf(LogALERT, "Failed to allocate memory (%lu)\n",
+ (unsigned long)BUCKET_CHUNK * size);
AbortProgram(EX_OSERR);
}
bp = &(*mb)->u.m;
@@ -354,7 +354,7 @@ m_enqueue(struct mqueue *queue, struct mbuf *bp)
} else
queue->last = queue->top = bp;
queue->len++;
- log_Printf(LogDEBUG, "m_enqueue: len = %d\n", queue->len);
+ log_Printf(LogDEBUG, "m_enqueue: len = %lu\n", (unsigned long)queue->len);
}
}
OpenPOWER on IntegriCloud