From f86b3b54af309f6f7dd52ad1e8d0af2e64677ee7 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sat, 15 Sep 2012 13:50:38 -0700 Subject: [PATCH] kernel - fix builds * Fix a few kprintf()'d %d -> %ld for nbufs. Reported-by: vsrinivas --- sys/platform/pc32/i386/machdep.c | 2 +- sys/platform/vkernel/i386/autoconf.c | 2 +- sys/platform/vkernel64/x86_64/autoconf.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/platform/pc32/i386/machdep.c b/sys/platform/pc32/i386/machdep.c index ea0e248106..c513e6c563 100644 --- a/sys/platform/pc32/i386/machdep.c +++ b/sys/platform/pc32/i386/machdep.c @@ -313,7 +313,7 @@ again: */ if (nbuf > (virtual_end - virtual_start) / (BKVASIZE * 2)) { nbuf = (virtual_end - virtual_start) / (BKVASIZE * 2); - kprintf("Warning: nbufs capped at %d\n", nbuf); + kprintf("Warning: nbufs capped at %ld\n", nbuf); } /* limit to 128 on i386 */ diff --git a/sys/platform/vkernel/i386/autoconf.c b/sys/platform/vkernel/i386/autoconf.c index 171fa765b0..beb24be98e 100644 --- a/sys/platform/vkernel/i386/autoconf.c +++ b/sys/platform/vkernel/i386/autoconf.c @@ -145,7 +145,7 @@ cpu_startup(void *dummy) } if (nbuf > (virtual_end - virtual_start) / (BKVASIZE * 2)) { nbuf = (virtual_end - virtual_start) / (BKVASIZE * 2); - kprintf("Warning: nbufs capped at %d\n", nbuf); + kprintf("Warning: nbufs capped at %ld\n", nbuf); } nswbuf = lmax(lmin(nbuf / 4, 256), 16); diff --git a/sys/platform/vkernel64/x86_64/autoconf.c b/sys/platform/vkernel64/x86_64/autoconf.c index bdbb1223dd..70668e12da 100644 --- a/sys/platform/vkernel64/x86_64/autoconf.c +++ b/sys/platform/vkernel64/x86_64/autoconf.c @@ -143,7 +143,7 @@ cpu_startup(void *dummy) } if (nbuf > (virtual_end - virtual_start) / (BKVASIZE * 2)) { nbuf = (virtual_end - virtual_start) / (BKVASIZE * 2); - kprintf("Warning: nbufs capped at %d\n", nbuf); + kprintf("Warning: nbufs capped at %ld\n", nbuf); } nswbuf = lmax(lmin(nbuf / 4, 256), 16); -- 2.11.4.GIT