From c3ce3048104c33ff4ed9bf10fb9d0af4116ec2ee Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Wed, 6 Dec 2006 20:37:09 -0800 Subject: [PATCH] --- yaml --- r: 42825 b: refs/heads/master c: 8f63fdbbd6de7d734c036948bf7c4b2bebe3ad99 h: refs/heads/master i: 42823: 83bf5302598dc5b556d30fa83cffddcf6f5173bf v: v3 --- [refs] | 2 +- trunk/lib/list_debug.c | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index d65eb6cb6ab5..4a521fbd509a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5d469ec0f40d65b2a0a704402990a43b2dafe197 +refs/heads/master: 8f63fdbbd6de7d734c036948bf7c4b2bebe3ad99 diff --git a/trunk/lib/list_debug.c b/trunk/lib/list_debug.c index 7ba9d823d388..4350ba9655bd 100644 --- a/trunk/lib/list_debug.c +++ b/trunk/lib/list_debug.c @@ -21,13 +21,15 @@ void __list_add(struct list_head *new, struct list_head *next) { if (unlikely(next->prev != prev)) { - printk(KERN_ERR "list_add corruption. next->prev should be %p, but was %p\n", - prev, next->prev); + printk(KERN_ERR "list_add corruption. next->prev should be " + "prev (%p), but was %p. (next=%p).\n", + prev, next->prev, next); BUG(); } if (unlikely(prev->next != next)) { - printk(KERN_ERR "list_add corruption. prev->next should be %p, but was %p\n", - next, prev->next); + printk(KERN_ERR "list_add corruption. prev->next should be " + "next (%p), but was %p. (prev=%p).\n", + next, prev->next, prev); BUG(); } next->prev = new;