diff options
author | julian <julian@FreeBSD.org> | 2008-04-30 20:00:30 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2008-04-30 20:00:30 +0000 |
commit | 7db99d1cdd43982226fb5b40e15ede56cc1712be (patch) | |
tree | 7c637c561d8d8a8742086cf27558ee9b0fc0553f /sys/kern/uipc_mbuf.c | |
parent | fe6695883121d93b914f531a5b86e588f5b99cea (diff) | |
download | FreeBSD-src-7db99d1cdd43982226fb5b40e15ede56cc1712be.zip FreeBSD-src-7db99d1cdd43982226fb5b40e15ede56cc1712be.tar.gz |
Attempt to make the print types more friendly to other architectures.
Prodded by: Max Laier
Help from: BMS, jhb
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 2b74428..38e16b6 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1944,9 +1944,9 @@ m_unshare(struct mbuf *m0, int how) #define MP_BUCKETS 32 /* don't just change this as things may overflow.*/ struct mbufprofile { - u_int64_t wasted[MP_BUCKETS]; - u_int64_t used[MP_BUCKETS]; - u_int64_t segments[MP_BUCKETS]; + uintmax_t wasted[MP_BUCKETS]; + uintmax_t used[MP_BUCKETS]; + uintmax_t segments[MP_BUCKETS]; } mbprof; #define MP_MAXDIGITS 21 /* strlen("16,000,000,000,000,000,000") == 21 */ @@ -2006,16 +2006,16 @@ mbprof_textify(void) c = mbprofbuf; offset = snprintf(c, MP_MAXLINE + 10, "wasted:\n" - "%lld %lld %lld %lld %lld %lld %lld %lld " - "%lld %lld %lld %lld %lld %lld %lld %lld\n", + "%ju %ju %ju %ju %ju %ju %ju %ju " + "%ju %ju %ju %ju %ju %ju %ju %ju\n", p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15]); #ifdef BIG_ARRAY p = &mbprof.wasted[16]; c += offset; offset = snprintf(c, MP_MAXLINE, - "%lld %lld %lld %lld %lld %lld %lld %lld " - "%lld %lld %lld %lld %lld %lld %lld %lld\n", + "%ju %ju %ju %ju %ju %ju %ju %ju " + "%ju %ju %ju %ju %ju %ju %ju %ju\n", p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15]); #endif @@ -2023,16 +2023,16 @@ mbprof_textify(void) c += offset; offset = snprintf(c, MP_MAXLINE + 10, "used:\n" - "%lld %lld %lld %lld %lld %lld %lld %lld " - "%lld %lld %lld %lld %lld %lld %lld %lld\n", + "%ju %ju %ju %ju %ju %ju %ju %ju " + "%ju %ju %ju %ju %ju %ju %ju %ju\n", p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15]); #ifdef BIG_ARRAY p = &mbprof.used[16]; c += offset; offset = snprintf(c, MP_MAXLINE, - "%lld %lld %lld %lld %lld %lld %lld %lld " - "%lld %lld %lld %lld %lld %lld %lld %lld\n", + "%ju %ju %ju %ju %ju %ju %ju %ju " + "%ju %ju %ju %ju %ju %ju %ju %ju\n", p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15]); #endif @@ -2040,16 +2040,16 @@ mbprof_textify(void) c += offset; offset = snprintf(c, MP_MAXLINE + 10, "segments:\n" - "%lld %lld %lld %lld %lld %lld %lld %lld " - "%lld %lld %lld %lld %lld %lld %lld %lld\n", + "%ju %ju %ju %ju %ju %ju %ju %ju " + "%ju %ju %ju %ju %ju %ju %ju %ju\n", p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15]); #ifdef BIG_ARRAY p = &mbprof.segments[16]; c += offset; offset = snprintf(c, MP_MAXLINE, - "%lld %lld %lld %lld %lld %lld %lld %lld " - "%lld %lld %lld %lld %lld %lld %lld %lld\n", + "%ju %ju %ju %ju %ju %ju %ju %ju " + "%ju %ju %ju %ju %ju %ju %ju %jju", p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15]); #endif |