[PATCH][2.5] Add cachep->name to kmem_cache_destroy debug printk

Zwane Mwaikambo (zwane@linuxpower.ca)
Sat, 14 Jun 2003 03:03:44 -0400 (EDT)


kmem_cache_destroy: Can't free all objects cbc7af30 (dcookie_cache)

I've been getting a number of these, perhaps it might be
worthwhile adding the name too.

Index: linux-2.5/mm/slab.c
===================================================================
RCS file: /home/cvs/linux-2.5/mm/slab.c,v
retrieving revision 1.88
diff -u -p -B -r1.88 slab.c
--- linux-2.5/mm/slab.c 11 Jun 2003 07:09:28 -0000 1.88
+++ linux-2.5/mm/slab.c 14 Jun 2003 05:35:25 -0000
@@ -1319,8 +1319,8 @@ int kmem_cache_destroy (kmem_cache_t * c
up(&cache_chain_sem);

if (__cache_shrink(cachep)) {
- printk(KERN_ERR "kmem_cache_destroy: Can't free all objects %p\n",
- cachep);
+ printk(KERN_ERR "kmem_cache_destroy: Can't free all objects %p (%s)\n",
+ cachep, cachep->name);
down(&cache_chain_sem);
list_add(&cachep->next,&cache_chain);
up(&cache_chain_sem);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/