aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/mbuf.c
diff options
context:
space:
mode:
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 5bd58dcc6fc9..5d5135847804 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);
}
}