PHAL: added createPEL wrapper function
Added wrapper function to create PEL based on event type.
Why: concurrent code update feature requires to create to
PEL, based on event types in various use cases. This will
help to reduce duplicate code.
Tested: verified PEL log
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I21d46775994f5c2f86124e33bf98dd9044f3e5d8
diff --git a/procedures/phal/check_host_running.cpp b/procedures/phal/check_host_running.cpp
index 98d1e14..6366e56 100644
--- a/procedures/phal/check_host_running.cpp
+++ b/procedures/phal/check_host_running.cpp
@@ -82,7 +82,7 @@
}
// Create an error so user knows system is in a bad state
- openpower::pel::createHostRunningPEL();
+ openpower::pel::createPEL("org.open_power.PHAL.Error.HostRunning");
// Create file for host instance and create in filesystem to
// indicate to services that host is running.