summaryrefslogtreecommitdiffstats
path: root/hw/chiptod.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2014-10-13 15:15:45 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-10-15 14:23:24 +1100
commit9ffd46d59448abaa5a6c71deca1510b83cefae46 (patch)
treef357014fd9b620837fbf12a4df06b2f1d945b747 /hw/chiptod.c
parent489a4179a3276d3bd9eb29d4291d040ff7f076f5 (diff)
downloadblackbird-skiboot-9ffd46d59448abaa5a6c71deca1510b83cefae46.tar.gz
blackbird-skiboot-9ffd46d59448abaa5a6c71deca1510b83cefae46.zip
Some CHIPTOD log messages should be prerror in event of error.
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/chiptod.c')
-rw-r--r--hw/chiptod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/chiptod.c b/hw/chiptod.c
index 346b9adf..7213b10f 100644
--- a/hw/chiptod.c
+++ b/hw/chiptod.c
@@ -606,7 +606,7 @@ static int chiptod_start_tod(void)
/* Switch local chiptod to "Not Set" state */
if (xscom_writeme(TOD_LOAD_TOD_MOD, (1UL << 63)) != 0) {
- printf("CHIPTOD: XSCOM error sending LOAD_TOD_MOD\n");
+ prerror("CHIPTOD: XSCOM error sending LOAD_TOD_MOD\n");
return 0;
}
@@ -689,7 +689,7 @@ error_out:
static int64_t opal_resync_timebase(void)
{
if (!chiptod_wakeup_resync()) {
- printf("OPAL: Resync timebase failed on CPU 0x%04x\n",
+ prerror("OPAL: Resync timebase failed on CPU 0x%04x\n",
this_cpu()->pir);
return OPAL_HARDWARE;
}
OpenPOWER on IntegriCloud