From 2fda28e6abe15cbe4f443b4941570f14da684217 Mon Sep 17 00:00:00 2001 From: des Date: Thu, 23 May 2002 03:08:42 +0000 Subject: Make the counters uintmax_ts, and use %ju rather than %llu. --- sys/kern/kern_mutex.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/kern/kern_mutex.c') diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index ab564b7..360cb73 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -48,6 +48,7 @@ #include #include #include +#include #include #include @@ -219,7 +220,7 @@ struct mutex_prof { #define MPROF_TOT 1 #define MPROF_CNT 2 #define MPROF_AVG 3 - u_int64_t counter[4]; + uintmax_t counter[4]; struct mutex_prof *next; }; @@ -284,7 +285,7 @@ dump_mutex_prof_stats(SYSCTL_HANDLER_ARGS) "max", "total", "count", "average", "name"); mtx_lock_spin(&mprof_mtx); for (i = 0; i < first_free_mprof_buf; ++i) - sbuf_printf(sb, "%12llu %12llu %12llu %12llu %s:%d (%s)\n", + sbuf_printf(sb, "%12ju %12ju %12ju %12ju %s:%d (%s)\n", mprof_buf[i].counter[MPROF_MAX] / 1000, mprof_buf[i].counter[MPROF_TOT] / 1000, mprof_buf[i].counter[MPROF_CNT], -- cgit v1.1