diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index ab564b70a9bb..360cb73dac26 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], diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c index ab564b70a9bb..360cb73dac26 100644 --- a/sys/kern/subr_turnstile.c +++ b/sys/kern/subr_turnstile.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],