[PATCH] SLAB: Mention slab name when listing corrupt objects
authorDavid Howells <dhowells@redhat.com>
Mon, 2 Apr 2007 22:46:28 +0000 (23:46 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 4 Apr 2007 15:51:52 +0000 (08:51 -0700)
Mention the slab name when listing corrupt objects.  Although the function
that released the memory is mentioned, that is frequently ambiguous as such
functions often release several pieces of memory.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slab.c

index 57f7aa4200640e78cd1207e2a39dbbd4d310c8ac..4cbac24ae2f1f25c2a81e728aa576f1ae8b9d254 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1802,8 +1802,8 @@ static void check_poison_obj(struct kmem_cache *cachep, void *objp)
                        /* Print header */
                        if (lines == 0) {
                                printk(KERN_ERR
-                                       "Slab corruption: start=%p, len=%d\n",
-                                       realobj, size);
+                                       "Slab corruption: %s start=%p, len=%d\n",
+                                       cachep->name, realobj, size);
                                print_objinfo(cachep, objp, 0);
                        }
                        /* Hexdump the affected line */