From: David Howells Date: Mon, 2 Apr 2007 22:46:28 +0000 (+0100) Subject: [PATCH] SLAB: Mention slab name when listing corrupt objects X-Git-Tag: v2.6.21-rc6~15 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e94a40c508dbdce872c79a13b35830c050d71e23;p=linux-2.6 [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 Signed-off-by: Linus Torvalds --- diff --git a/mm/slab.c b/mm/slab.c index 57f7aa4200..4cbac24ae2 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 */