[Skiboot] [PATCH] core/platform: Replace printfs with prlog

Vipin K Parashar vipin at linux.vnet.ibm.com
Sun Aug 7 05:07:46 AEST 2016


Use prlog replacing printfs in core/platform.c

Signed-off-by: Vipin K Parashar <vipin at linux.vnet.ibm.com>
---
 core/platform.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/core/platform.c b/core/platform.c
index de6e406..f29e678 100644
--- a/core/platform.c
+++ b/core/platform.c
@@ -35,7 +35,7 @@ DEFINE_LOG_ENTRY(OPAL_RC_ABNORMAL_REBOOT, OPAL_PLATFORM_ERR_EVT, OPAL_CEC,
  */
 static int64_t opal_cec_power_down(uint64_t request)
 {
-	printf("OPAL: Shutdown request type 0x%llx...\n", request);
+	prlog(PR_NOTICE, "OPAL: Shutdown request type 0x%llx...\n", request);
 
 	console_complete_flush();
 
@@ -48,7 +48,7 @@ opal_call(OPAL_CEC_POWER_DOWN, opal_cec_power_down, 1);
 
 static int64_t opal_cec_reboot(void)
 {
-	printf("OPAL: Reboot request...\n");
+	prlog(PR_NOTICE, "OPAL: Reboot request...\n");
 
 	console_complete_flush();
 
@@ -88,7 +88,7 @@ static int64_t opal_cec_reboot2(uint32_t reboot_type, char *diag)
 		}
 		return xscom_trigger_xstop();
 	default:
-		printf("OPAL: Unsupported reboot request %d\n", reboot_type);
+		prlog(PR_NOTICE, "OPAL: Unsupported reboot request %d\n", reboot_type);
 		return OPAL_UNSUPPORTED;
 		break;
 	}
@@ -133,7 +133,7 @@ void probe_platform(void)
 		}
 	}
 
-	printf("PLAT: Detected %s platform\n", platform.name);
+	prlog(PR_NOTICE, "PLAT: Detected %s platform\n", platform.name);
 }
 
 int start_preload_resource(enum resource_id id, uint32_t subid,
-- 
2.7.4



More information about the Skiboot mailing list