mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] SLAB: Mention slab name when listing corrupt objects
@ 2007-04-02 22:46 David Howells
  0 siblings, 0 replies; only message in thread
From: David Howells @ 2007-04-02 22:46 UTC (permalink / raw)
  To: torvalds, akpm; +Cc: linux-kernel

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>
---

 mm/slab.c |    4 ++--
 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 */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-02 22:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-02 22:46 [PATCH] SLAB: Mention slab name when listing corrupt objects David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®