aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/uipc_mbuf.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2008-04-30 20:00:30 +0000
committerJulian Elischer <julian@FreeBSD.org>2008-04-30 20:00:30 +0000
commit2182c0cfbf7fd4db2391af55d8335eea1bb3f886 (patch)
tree7c637c561d8d8a8742086cf27558ee9b0fc0553f /sys/kern/uipc_mbuf.c
parent51a5da15a7bff13d44782ae81158fe538c6a888f (diff)
downloadsrc-2182c0cfbf7fd4db2391af55d8335eea1bb3f886.tar.gz
src-2182c0cfbf7fd4db2391af55d8335eea1bb3f886.zip
Notes
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r--sys/kern/uipc_mbuf.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 2b7442884e25..38e16b6ee164 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