diff options
-rw-r--r-- | sys/kern/kern_malloc.c | 2 | ||||
-rw-r--r-- | sys/sys/malloc.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 6ec1111..56769ad 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -484,7 +484,7 @@ sysctl_kern_malloc(SYSCTL_HANDLER_ARGS) continue; curline = linesize - 2; /* Leave room for the \n */ - len = snprintf(p, curline, "%13s%6ld%6ldK%7ldK%9llu", + len = snprintf(p, curline, "%13s%6lu%6luK%7luK%9llu", type->ks_shortdesc, type->ks_inuse, (type->ks_memuse + 1023) / 1024, diff --git a/sys/sys/malloc.h b/sys/sys/malloc.h index dc65435..a1438be 100644 --- a/sys/sys/malloc.h +++ b/sys/sys/malloc.h @@ -55,11 +55,11 @@ struct malloc_type { struct malloc_type *ks_next; /* next in list */ - long ks_memuse; /* total memory held in bytes */ - long ks_size; /* sizes of this thing that are allocated */ - long ks_inuse; /* # of packets of this type currently in use */ + u_long ks_memuse; /* total memory held in bytes */ + u_long ks_size; /* sizes of this thing that are allocated */ + u_long ks_inuse; /* # of packets of this type currently in use */ uint64_t ks_calls; /* total packets of this type ever allocated */ - long ks_maxused; /* maximum number ever used */ + u_long ks_maxused; /* maximum number ever used */ u_long ks_magic; /* if it's not magic, don't touch it */ const char *ks_shortdesc; /* short description */ }; |