aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-08-08 17:11:49 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-08-08 17:20:52 +1000
commit869c7522aad98c2682e37feb8e56be7a3e975d4d (patch)
tree51c98e091a4eb7b29066bfaed140d9c440ce3677 /hw
parent6f1019e652c517cb825c09a03f52f420dc5e9002 (diff)
downloadskiboot-869c7522aad98c2682e37feb8e56be7a3e975d4d.zip
skiboot-869c7522aad98c2682e37feb8e56be7a3e975d4d.tar.gz
skiboot-869c7522aad98c2682e37feb8e56be7a3e975d4d.tar.bz2
pci: Improve logging format and log levels
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/phb3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/phb3.c b/hw/phb3.c
index 61a6a2a..6ee0527 100644
--- a/hw/phb3.c
+++ b/hw/phb3.c
@@ -486,8 +486,8 @@ static int64_t phb3_presence_detect(struct phb *phb)
/* Read hotplug override */
hp_override = in_be64(p->regs + PHB_HOTPLUG_OVERRIDE);
- printf("PHB%d: slot_stat: 0x%04x, hp_override: 0x%016llx\n",
- phb->opal_id, slot_stat, hp_override);
+ PHBDBG(p, "slot_stat: 0x%04x, hp_override: 0x%016llx\n",
+ slot_stat, hp_override);
/* So if the slot status says nothing connected, we bail out */
if (!(slot_stat & PCICAP_EXP_SLOTSTAT_PDETECTST))