rpms/kernel/devel linux-2.6-debug-list_head.patch,1.5,1.6

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Sun Sep 17 01:18:43 UTC 2006


Author: davej

Update of /cvs/dist/rpms/kernel/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv26224

Modified Files:
	linux-2.6-debug-list_head.patch 
Log Message:
printk constants for list debug

linux-2.6-debug-list_head.patch:
 include/linux/list.h |   15 +++++++++
 lib/Kconfig.debug    |    9 +++++
 lib/Makefile         |    1 
 lib/list_debug.c     |   77 +++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 102 insertions(+)

Index: linux-2.6-debug-list_head.patch
===================================================================
RCS file: /cvs/dist/rpms/kernel/devel/linux-2.6-debug-list_head.patch,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- linux-2.6-debug-list_head.patch	15 Jul 2006 20:03:41 -0000	1.5
+++ linux-2.6-debug-list_head.patch	17 Sep 2006 01:18:41 -0000	1.6
@@ -120,12 +120,12 @@
 +			      struct list_head *next)
 +{
 +	if (unlikely(next->prev != prev)) {
-+		printk("list_add corruption. next->prev should be %p, but was %p\n",
++		printk(KERN_ERR "list_add corruption. next->prev should be %p, but was %p\n",
 +			prev, next->prev);
 +		BUG();
 +	}
 +	if (unlikely(prev->next != next)) {
-+		printk("list_add corruption. prev->next should be %p, but was %p\n",
++		printk(KERN_ERR "list_add corruption. prev->next should be %p, but was %p\n",
 +			next, prev->next);
 +		BUG();
 +	}
@@ -159,12 +159,12 @@
 +void list_del(struct list_head *entry)
 +{
 +	if (unlikely(entry->prev->next != entry)) {
-+		printk("list_del corruption. prev->next should be %p, but was %p\n",
++		printk(KERN_ERR "list_del corruption. prev->next should be %p, but was %p\n",
 +			entry, entry->prev->next);
 +		BUG();
 +	}
 +	if (unlikely(entry->next->prev != entry)) {
-+		printk("list_del corruption. next->prev should be %p, but was %p\n",
++		printk(KERN_ERR "list_del corruption. next->prev should be %p, but was %p\n",
 +			entry, entry->next->prev);
 +		BUG();
 +	}




More information about the fedora-cvs-commits mailing list