Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/ps3: Print memory hotplug errors

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>

authored by

Geoff Levand and committed by
Benjamin Herrenschmidt
9146cfc8 c9c38320

+2 -2
+2 -2
arch/powerpc/platforms/ps3/mm.c
··· 311 311 result = add_memory(0, start_addr, map.r1.size); 312 312 313 313 if (result) { 314 - DBG("%s:%d: add_memory failed: (%d)\n", 314 + pr_err("%s:%d: add_memory failed: (%d)\n", 315 315 __func__, __LINE__, result); 316 316 return result; 317 317 } ··· 322 322 result = online_pages(start_pfn, nr_pages); 323 323 324 324 if (result) 325 - DBG("%s:%d: online_pages failed: (%d)\n", 325 + pr_err("%s:%d: online_pages failed: (%d)\n", 326 326 __func__, __LINE__, result); 327 327 328 328 return result;