aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2005-10-20 21:28:31 +0000
committerRobert Watson <rwatson@FreeBSD.org>2005-10-20 21:28:31 +0000
commit64a266f9e8b5fc5da3d37e249ee8ed99f4058857 (patch)
tree3f8ab162b49cd01f97b8e13bd60e99253a478d24
parentf3f9e7ae9bab8f726374b06a7818cef7e2bc6f33 (diff)
downloadsrc-64a266f9e8b5fc5da3d37e249ee8ed99f4058857.tar.gz
src-64a266f9e8b5fc5da3d37e249ee8ed99f4058857.zip
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
Notes
Notes: svn path=/head/; revision=151526
-rw-r--r--sys/kern/kern_malloc.c2
-rw-r--r--sys/vm/uma_core.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index 3cb720d8bb55..6073e9c62307 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 714e5a3601e6..6b0426ef56cd 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);
}
}