powerpc/pnv: Avoid bogus output
authorGavin Shan <shangw@linux.vnet.ibm.com>
Wed, 17 Oct 2012 19:53:30 +0000 (19:53 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 15 Nov 2012 02:00:08 +0000 (13:00 +1100)
commit490e078d6a21aa90d54f36cdcc544e87070175bd
tree5fd8dbdc77ee9504b1b32db19c044db75c7f24dc
parent40c935ae3de413d6bbc5471c231c90e26a63d562
powerpc/pnv: Avoid bogus output

There're couples of functions defined to print debugging messages
during initializing P7IOC. However, we got bogus output from those
functions like pe_info(). The problem here is that the message
level (the first parameter to printk()) isn't printable and that
caused the bogus output.

The patch fixes the issue by merging __pe_printk() to the macro
define_pe_printk_level() so that we can pass the message level
directly to printk().

Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/pci-ioda.c