Commit ac464b3f authored by Linus Torvalds's avatar Linus Torvalds

Make bad_page() print out the page address.

The bug turned out to be memory corruption by DMA, and
the corrupted address made it that much more obvious.
parent 6c5446e4
...@@ -71,7 +71,7 @@ static int bad_range(struct zone *zone, struct page *page) ...@@ -71,7 +71,7 @@ static int bad_range(struct zone *zone, struct page *page)
static void bad_page(const char *function, 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", printk("flags:0x%08lx mapping:%p mapped:%d count:%d\n",
page->flags, page->mapping, page->flags, page->mapping,
page_mapped(page), page_count(page)); page_mapped(page), page_count(page));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment