[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>
This commit is contained in:
David Howells 2007-04-02 23:46:28 +01:00 коммит произвёл Linus Torvalds
Родитель bb4899dbef
Коммит e94a40c508
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1802,8 +1802,8 @@ static void check_poison_obj(struct kmem_cache *cachep, void *objp)
/* Print header */ /* Print header */
if (lines == 0) { if (lines == 0) {
printk(KERN_ERR printk(KERN_ERR
"Slab corruption: start=%p, len=%d\n", "Slab corruption: %s start=%p, len=%d\n",
realobj, size); cachep->name, realobj, size);
print_objinfo(cachep, objp, 0); print_objinfo(cachep, objp, 0);
} }
/* Hexdump the affected line */ /* Hexdump the affected line */