Patchwork [2/3] powerpc/ps3: Print memory hotplug errors

login
register
mail settings
Submitter Geoff Levand
Date March 3, 2009, 6:33 p.m.
Message ID <20090303183304.922607310@am.sony.com>>
Download mbox | patch
Permalink /patch/23999/
State Accepted
Commit 7ff21a24c9f9e2b359f7fccba79163a15fa797e3
Delegated to: Benjamin Herrenschmidt
Headers show

Comments

Geoff Levand - March 3, 2009, 6:33 p.m.
To help users diagnose hotpug memory problems, change the
printing of memory hotplug errors from DBG() to pr_err().

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
 arch/powerpc/platforms/ps3/mm.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

--- a/arch/powerpc/platforms/ps3/mm.c
+++ b/arch/powerpc/platforms/ps3/mm.c
@@ -311,7 +311,7 @@  static int __init ps3_mm_add_memory(void
 	result = add_memory(0, start_addr, map.r1.size);
 
 	if (result) {
-		DBG("%s:%d: add_memory failed: (%d)\n",
+		pr_err("%s:%d: add_memory failed: (%d)\n",
 			__func__, __LINE__, result);
 		return result;
 	}
@@ -322,7 +322,7 @@  static int __init ps3_mm_add_memory(void
 	result = online_pages(start_pfn, nr_pages);
 
 	if (result)
-		DBG("%s:%d: online_pages failed: (%d)\n",
+		pr_err("%s:%d: online_pages failed: (%d)\n",
 			__func__, __LINE__, result);
 
 	return result;