diff options
author | Anshuman Khandual <khandual@linux.vnet.ibm.com> | 2014-11-05 13:34:51 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-12-03 07:37:48 +1100 |
commit | f87b9c45ba61d5dd031bbf2fd72205ce4cfd0c0f (patch) | |
tree | 5f1845df70dbedee07f5968c633da6cfddf25851 /hw/fsp | |
parent | 98906081b1fed34f3775a4ce9f0ca10522e526f0 (diff) | |
download | skiboot-f87b9c45ba61d5dd031bbf2fd72205ce4cfd0c0f.zip skiboot-f87b9c45ba61d5dd031bbf2fd72205ce4cfd0c0f.tar.gz skiboot-f87b9c45ba61d5dd031bbf2fd72205ce4cfd0c0f.tar.bz2 |
epow: Convert printf based log messages into prlog based logs
This patch changes all printf based log messages in the EPOW
handling code into prlog based log messages with appropriate
priority level.
Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/fsp')
-rw-r--r-- | hw/fsp/fsp-epow.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/hw/fsp/fsp-epow.c b/hw/fsp/fsp-epow.c index c162d25..0012dbc 100644 --- a/hw/fsp/fsp-epow.c +++ b/hw/fsp/fsp-epow.c @@ -68,12 +68,12 @@ static void epow_process_base_event(u8 *epow) } if (epow[3] & SPCN_POWR_FAIL) { - printf(PREFIX "FSP message with SPCN_POWR_FAIL\n"); + prlog(PR_TRACE, PREFIX "FSP message with SPCN_POWR_FAIL\n"); epow_status[OPAL_SYSEPOW_POWER] |= OPAL_SYSPOWER_FAIL; } if (epow[3] & SPCN_INCL_POWR) { - printf(PREFIX "FSP message with SPCN_INCL_POWR\n"); + prlog(PR_TRACE, PREFIX "FSP message with SPCN_INCL_POWR\n"); epow_status[OPAL_SYSEPOW_POWER] |= OPAL_SYSPOWER_INCL; } } @@ -85,17 +85,17 @@ static void epow_process_ex1_event(u8 *epow) epow_status[OPAL_SYSEPOW_TEMP] &= ~(OPAL_SYSTEMP_AMB | OPAL_SYSTEMP_INT); if (epow[4] == EPOW_ON_UPS) { - printf(PREFIX "FSP message with EPOW_ON_UPS\n"); + prlog(PR_TRACE, PREFIX "FSP message with EPOW_ON_UPS\n"); epow_status[OPAL_SYSEPOW_POWER] |= OPAL_SYSPOWER_UPS; } if (epow[4] == EPOW_TMP_AMB) { - printf(PREFIX "FSP message with EPOW_TMP_AMB\n"); + prlog(PR_TRACE, PREFIX "FSP message with EPOW_TMP_AMB\n"); epow_status[OPAL_SYSEPOW_TEMP] |= OPAL_SYSTEMP_AMB; } if (epow[4] == EPOW_TMP_INT) { - printf(PREFIX "FSP message with EPOW_TMP_INT\n"); + prlog(PR_TRACE, PREFIX "FSP message with EPOW_TMP_INT\n"); epow_status[OPAL_SYSEPOW_TEMP] |= OPAL_SYSTEMP_INT; } } @@ -127,7 +127,7 @@ static void fsp_epow_update(u8 *epow, int epow_type) /*FIXME: Key position information present but not used */ break; default: - printf(PREFIX "Unkown EPOW event notification\n"); + prlog(PR_WARNING, PREFIX "Unknown EPOW event notification\n"); break; } unlock(&epow_lock); @@ -139,7 +139,7 @@ static void fsp_epow_update(u8 *epow, int epow_type) if (epow_changed) { rc = opal_queue_msg(OPAL_MSG_EPOW, NULL, NULL); if (rc) { - printf(PREFIX "OPAL EPOW message queuing failed\n"); + prlog(PR_ERR, PREFIX "OPAL EPOW message queuing failed\n"); return; } } @@ -152,7 +152,7 @@ static void fsp_process_epow(struct fsp_msg *msg, int epow_type) /* Basic EPOW signature */ if (msg->data.bytes[0] != 0xF2) { - printf(PREFIX "Signature mismatch\n"); + prlog(PR_ERR, PREFIX "Signature mismatch\n"); return; } @@ -185,7 +185,7 @@ static void fsp_process_epow(struct fsp_msg *msg, int epow_type) fsp_queue_msg(fsp_mkmsg(FSP_CMD_STATUS_EX2_REQ, 0), fsp_freemsg); break; default: - printf(PREFIX "Unkown EPOW event notification\n"); + prlog(PR_WARNING, PREFIX "Unknown EPOW event notification\n"); return; } fsp_epow_update(epow, epow_type); @@ -268,5 +268,5 @@ void fsp_epow_init(void) np = dt_new(opal_node, "epow"); dt_add_property_strings(np, "compatible", "ibm,opal-v3-epow"); dt_add_property_strings(np, "epow-classes", "power", "temperature", "cooling"); - printf(PREFIX "FSP EPOW support initialized\n"); + prlog(PR_TRACE, PREFIX "FSP EPOW support initialized\n"); } |