summaryrefslogtreecommitdiffstats
path: root/src/usr/errl/errlentry.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/errl/errlentry.C')
-rw-r--r--src/usr/errl/errlentry.C5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr/errl/errlentry.C b/src/usr/errl/errlentry.C
index 9192ff83a..7c46edff4 100644
--- a/src/usr/errl/errlentry.C
+++ b/src/usr/errl/errlentry.C
@@ -605,6 +605,7 @@ void ErrlEntry::checkHiddenLogsEnable( )
///////////////////////////////////////////////////////////////////////////////
// Called by addHwCallout to get the part and serial numbers from the current
// target so that it can be appended to the error log
+#ifdef CONFIG_BMC_IPMI
void ErrlEntry::addPartAndSerialNumbersToErrLog
(const TARGETING::Target * i_target)
{
@@ -668,7 +669,7 @@ void ErrlEntry::checkHiddenLogsEnable( )
TRACDCOMP(g_trac_errl, EXIT_MRK"ErrlEntry::addPartAndSerialNumbersToErrLog()");
}
-
+#endif
///////////////////////////////////////////////////////////////////////////////
// for use by ErrlManager
@@ -724,7 +725,9 @@ void ErrlEntry::commit( compId_t i_committerComponent )
this);
if(!l_err)
{
+#ifdef CONFIG_BMC_IPMI
addPartAndSerialNumbersToErrLog( l_target );
+#endif
}
else
{
OpenPOWER on IntegriCloud