From 64a266f9e8b5fc5da3d37e249ee8ed99f4058857 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Thu, 20 Oct 2005 21:28:31 +0000 Subject: Change format string for u_int64_t to %ju from %llu, in order to use the correct format string on 64-bit systems. Pointed out by: pjd --- sys/kern/kern_malloc.c | 2 +- sys/vm/uma_core.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 3cb720d8bb558..6073e9c623077 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -834,7 +834,7 @@ DB_SHOW_COMMAND(malloc, db_show_malloc) allocs += mtip->mti_stats[i].mts_numallocs; frees += mtip->mti_stats[i].mts_numfrees; } - db_printf("%18s %12llu %12llu %12llu\n", mtp->ks_shortdesc, + db_printf("%18s %12ju %12ju %12ju\n", mtp->ks_shortdesc, allocs, frees, allocs - frees); } } diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index 714e5a3601e62..6b0426ef56cd7 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -3069,7 +3069,7 @@ DB_SHOW_COMMAND(uma, db_show_uma) cachefree += kz->uk_free; LIST_FOREACH(bucket, &z->uz_full_bucket, ub_link) cachefree += bucket->ub_cnt; - db_printf("%18s %12llu %12llu %12llu %8d\n", z->uz_name, + db_printf("%18s %12ju %12ju %12ju %8d\n", z->uz_name, allocs, frees, allocs - frees, cachefree); } } -- cgit v1.3