Skip to content

Commit

Permalink
powerpc/ps3: Print memory hotplug errors
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Geoff Levand authored and Benjamin Herrenschmidt committed Mar 11, 2009
1 parent c9c3832 commit 9146cfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/ps3/mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
Expand Down

0 comments on commit 9146cfc

Please sign in to comment.