summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-07-09 21:32:57 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-07-09 21:32:57 +0000
commit9f2b43b25e6ab17ac47b7754a157e01075cb5ba9 (patch)
tree969b2b1b380c34b9f9e0eee108928f6c64662559 /mm
parentb401fa930d4a8d6e1f94a9b6dce8000421ef45d5 (diff)
Fry slab warnings. Patch sent to Linus.
Diffstat (limited to 'mm')
-rw-r--r--mm/slab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slab.c b/mm/slab.c
index ad1147500..3d1385f9e 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -442,7 +442,7 @@ void __init kmem_cache_sizes_init(void)
* eliminates "false sharing".
* Note for systems short on memory removing the alignment will
* allow tighter packing of the smaller caches. */
- sprintf(name,"size-%d",sizes->cs_size);
+ sprintf(name,"size-%ld", (unsigned long) sizes->cs_size);
if (!(sizes->cs_cachep =
kmem_cache_create(name, sizes->cs_size,
0, SLAB_HWCACHE_ALIGN, NULL, NULL))) {
@@ -454,7 +454,7 @@ void __init kmem_cache_sizes_init(void)
offslab_limit = sizes->cs_size-sizeof(slab_t);
offslab_limit /= 2;
}
- sprintf(name, "size-%d(DMA)",sizes->cs_size);
+ sprintf(name, "size-%ld(DMA)", (unsigned long) sizes->cs_size);
sizes->cs_dmacachep = kmem_cache_create(name, sizes->cs_size, 0,
SLAB_CACHE_DMA|SLAB_HWCACHE_ALIGN, NULL, NULL);
if (!sizes->cs_dmacachep)