diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-22 21:31:03 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-22 21:31:03 +0000 |
commit | 5938db6b99f3318a6d269b361d6484f3ac90c82d (patch) | |
tree | 358a7ac9080e186514f8665ddbbbbea852c68d3f /sbin | |
parent | 70c461dee93fff2ff52b8f38db46d6472af9be3a (diff) |
Nicer printing of kmem buckets.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/sysctl/sysctl.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 57a8cf4aa4a..5b160ad4974 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.66 2001/06/01 20:08:31 mickey Exp $ */ +/* $OpenBSD: sysctl.c,v 1.67 2001/06/22 21:31:02 art Exp $ */ /* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)sysctl.c 8.5 (Berkeley) 5/9/95"; #else -static char *rcsid = "$OpenBSD: sysctl.c,v 1.66 2001/06/01 20:08:31 mickey Exp $"; +static char *rcsid = "$OpenBSD: sysctl.c,v 1.67 2001/06/22 21:31:02 art Exp $"; #endif #endif /* not lint */ @@ -634,7 +634,14 @@ parse(string, flags) struct kmembuckets *kb = (struct kmembuckets *)buf; if (!nflag) (void)printf("%s = ", string); - (void)printf("(calls = %qu, total_allocated = %qu, total_free = %qu, elements = %qu, high_watermark = %qu, could_free = %qu)\n", kb->kb_calls, kb->kb_total, kb->kb_totalfree, kb->kb_elmpercl, kb->kb_highwat, kb->kb_couldfree); + printf("("); + printf("calls = %llu ", (long long)kb->kb_calls); + printf("total_allocated = %llu ", (long long)kb->kb_total); + printf("total_free = %lld ", (long long)kb->kb_totalfree); + printf("elements = %lld ", (long long)kb->kb_elmpercl); + printf("high watermark = %lld ", kb->kb_highwat); + printf("could_free = %lld", kb->kb_couldfree); + printf(")\n"); return; } if (special & KMEMSTATS) { |