phal: ipl_error_callback_func prototype related changes
libipl ipl_error_callback_func prototype changed to support additional
error handling support. This commits includes the changes related to
this function prototype function.
Also made changes in internal error handling to make direct
call to processBootError instead of callback function.
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I76aa1c4d41e4b2685b3c6534afe35988f35bc103
diff --git a/procedures/phal/proc_pre_poweroff.cpp b/procedures/phal/proc_pre_poweroff.cpp
index 1293080..3b2e8a0 100644
--- a/procedures/phal/proc_pre_poweroff.cpp
+++ b/procedures/phal/proc_pre_poweroff.cpp
@@ -23,14 +23,14 @@
{
log<level::ERR>("Exception raised during init PHAL",
entry("EXCEPTION=%s", ex.what()));
- openpower::pel::detail::processBootErrorCallback(false);
+ openpower::pel::detail::processBootError(false);
// Dont throw exception on failure because, we need to proceed
// further eventhough there is failure for proc-pre-poweroff
return;
}
// To clear trace if success
- openpower::pel::detail::processBootErrorCallback(true);
+ openpower::pel::detail::processBootError(true);
// callback method will be called upon failure which will create the PEL
int rc = ipl_pre_poweroff();