summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-07-14 15:21:18 +0000
committerrwatson <rwatson@FreeBSD.org>2005-07-14 15:21:18 +0000
commit83059d9b075f41bad0a2614a53b1cff64da6d056 (patch)
tree142a546d61346b44f1c1884773cee467d466fabd
parent425b7bf7755b0d36a4e9cec63b6e90650106b11b (diff)
downloadFreeBSD-src-83059d9b075f41bad0a2614a53b1cff64da6d056.zip
FreeBSD-src-83059d9b075f41bad0a2614a53b1cff64da6d056.tar.gz
Correct build on 64-bit: cast u_int64_t to (unsigned long long) before
printfing as (unsigned long long). 32-bit build on i386 didn't notice this. Whoops. Reported by: arved Tested by: sledge
-rw-r--r--sys/kern/kern_malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index 0b0b044..6f8518f 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -696,7 +696,7 @@ sysctl_kern_malloc(SYSCTL_HANDLER_ARGS)
mtp->ks_shortdesc,
temp_allocs,
(temp_bytes + 1023) / 1024,
- mts_local.mts_numallocs);
+ (unsigned long long)mts_local.mts_numallocs);
first = 1;
for (i = 0; i < sizeof(kmemzones) / sizeof(kmemzones[0]) - 1;
OpenPOWER on IntegriCloud