summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2002-04-30 22:39:32 +0000
committerJeff Roberson <jeff@FreeBSD.org>2002-04-30 22:39:32 +0000
commit289f207c81e6c458d8c9131c79f7bfa34b2f098d (patch)
tree9ab91c696b4c3b87e8077f9b8606a723b54f3a6e
parentea0f50bcf02f183c5e256abbdd541ef25321f2b5 (diff)
Notes
-rw-r--r--sys/kern/kern_malloc.c2
-rw-r--r--sys/sys/malloc.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index 6ec111121c22..56769ad1825a 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 dc65435c8836..a1438befa490 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 */
};