aboutsummaryrefslogtreecommitdiff
path: root/kern/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/slab.c')
-rw-r--r--kern/slab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/slab.c b/kern/slab.c
index dc44e42b..b20dd26f 100644
--- a/kern/slab.c
+++ b/kern/slab.c
@@ -1346,7 +1346,7 @@ void kalloc_init(void)
size = 1 << KALLOC_FIRST_SHIFT;
for (i = 0; i < ARRAY_SIZE(kalloc_caches); i++) {
- sprintf(name, "kalloc_%lu", size);
+ sprintf(name, "kalloc_%lu", (unsigned long) size);
kmem_cache_init(&kalloc_caches[i], name, size, 0, NULL, 0);
size <<= 1;
}