aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2007-04-02 23:46:28 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-04-04 08:51:52 -0700
commite94a40c508dbdce872c79a13b35830c050d71e23 (patch)
tree41803c452557e905667a8da87901ce1cc843e95c
parentbb4899dbef2650288d20251a736243472f050d8b (diff)
downloadkernel_samsung_crespo-e94a40c508dbdce872c79a13b35830c050d71e23.zip
kernel_samsung_crespo-e94a40c508dbdce872c79a13b35830c050d71e23.tar.gz
kernel_samsung_crespo-e94a40c508dbdce872c79a13b35830c050d71e23.tar.bz2
[PATCH] SLAB: Mention slab name when listing corrupt objects
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>
-rw-r--r--mm/slab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 57f7aa4..4cbac24 100644
--- 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 */