diff options
author | des <des@FreeBSD.org> | 2002-05-23 03:08:42 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-05-23 03:08:42 +0000 |
commit | 2fda28e6abe15cbe4f443b4941570f14da684217 (patch) | |
tree | 7e9e2becf3784658edae777ebda56354dd7f15ed /sys/kern/subr_turnstile.c | |
parent | 28296cf1d344cb36dbac1b4662e707b88c066a06 (diff) | |
download | FreeBSD-src-2fda28e6abe15cbe4f443b4941570f14da684217.zip FreeBSD-src-2fda28e6abe15cbe4f443b4941570f14da684217.tar.gz |
Make the counters uintmax_ts, and use %ju rather than %llu.
Diffstat (limited to 'sys/kern/subr_turnstile.c')
-rw-r--r-- | sys/kern/subr_turnstile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c index ab564b7..360cb73 100644 --- a/sys/kern/subr_turnstile.c +++ b/sys/kern/subr_turnstile.c @@ -48,6 +48,7 @@ #include <sys/proc.h> #include <sys/resourcevar.h> #include <sys/sbuf.h> +#include <sys/stdint.h> #include <sys/sysctl.h> #include <sys/vmmeter.h> @@ -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], |