]> git.neil.brown.name Git - history.git/commitdiff
Make bad_page() print out the page address.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 10 Mar 2004 09:11:46 +0000 (01:11 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 10 Mar 2004 09:11:46 +0000 (01:11 -0800)
The bug turned out to be memory corruption by DMA, and
the corrupted address made it that much more obvious.

mm/page_alloc.c

index 87be04de2c58d88625aa4bd41655fe9078ea4872..501e1bd294980121280813a505cb07805b5c0699 100644 (file)
@@ -71,7 +71,7 @@ static int bad_range(struct zone *zone, struct page *page)
 
 static void bad_page(const char *function, struct page *page)
 {
-       printk("Bad page state at %s (in process '%s')\n", function, current->comm);
+       printk("Bad page state at %s (in process '%s', page %p)\n", function, current->comm, page);
        printk("flags:0x%08lx mapping:%p mapped:%d count:%d\n",
                page->flags, page->mapping,
                page_mapped(page), page_count(page));