aboutsummaryrefslogtreecommitdiff
path: root/hw/lpc.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-06-24 14:17:22 -0500
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-06-26 14:28:58 +1000
commit7fab123bff59c44650b4b9c6a45c4884ed7ea2bd (patch)
tree9292560e8147aa9a347308415cfafa7395a6be4f /hw/lpc.c
parent562a10caf48c91c673f5e78289894dfbfe326884 (diff)
downloadskiboot-7fab123bff59c44650b4b9c6a45c4884ed7ea2bd.zip
skiboot-7fab123bff59c44650b4b9c6a45c4884ed7ea2bd.tar.gz
skiboot-7fab123bff59c44650b4b9c6a45c4884ed7ea2bd.tar.bz2
Big log level reduction...
90% of what we print isn't useful to a normal user. This dramatically reduces the amount of messages printed by OPAL in normal circumstances. We still need to add a way to bump the log level at boot based on a BMC scratch register or some HDAT property. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/lpc.c')
-rw-r--r--hw/lpc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/lpc.c b/hw/lpc.c
index b5fbc6c..6fdd1f0 100644
--- a/hw/lpc.c
+++ b/hw/lpc.c
@@ -1186,8 +1186,8 @@ static void lpc_init_chip_p9(struct dt_node *opb_node)
val &= 0xf0000000;
opb_write(lpc, opb_master_reg_base + 0xc, val, 4);
- printf("LPC[%03x]: Initialized, access via MMIO @%p\n",
- gcid, lpc->mbase);
+ prlog(PR_INFO, "LPC[%03x]: Initialized\n", gcid);
+ prlog(PR_DEBUG,"access via MMIO @%p\n", lpc->mbase);
chip->lpc = lpc;
}
@@ -1210,7 +1210,8 @@ void lpc_init(void)
}
}
if (lpc_default_chip_id >= 0)
- printf("LPC: Default bus on chip 0x%x\n", lpc_default_chip_id);
+ prlog(PR_DEBUG, "Default bus on chip 0x%x\n",
+ lpc_default_chip_id);
if (has_lpc) {
opal_register(OPAL_LPC_WRITE, opal_lpc_write, 5);