summaryrefslogtreecommitdiffstats
path: root/src/include/usr/errl/errlentry.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/errl/errlentry.H')
-rw-r--r--src/include/usr/errl/errlentry.H18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/include/usr/errl/errlentry.H b/src/include/usr/errl/errlentry.H
index a41cb7bcf..905203a9e 100644
--- a/src/include/usr/errl/errlentry.H
+++ b/src/include/usr/errl/errlentry.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2011,2019 */
+/* Contributors Listed Below - COPYRIGHT 2011,2020 */
/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
@@ -860,17 +860,15 @@ private:
*/
void addVersionInfo(void);
-#ifdef CONFIG_BMC_IPMI
/**
- * @brief called by addHwCallout to retrieve the serial and part number
- * from the current target. If the current target does not contain
- * ATTR_PART_NUMBER or ATTR_SERIAL_NUMBER, find the first parent that does
- * and adds the attribute to the error log.
+ * @brief called by addHwCallout to retrieve various pieces of card
+ * and/or chip data, e.g. part number, serial number, ecid.
*
* @param[in] i_target The target to get the numbers for
*/
- void addPartAndSerialNumbersToErrLog(const TARGETING::Target * i_target);
+ void addPartIdInfoToErrLog(const TARGETING::Target * i_target);
+#ifdef CONFIG_BMC_IPMI
/**
* @brief called by addHwCallout to retrieve the FRU ID and sensor ID
* from the current target. If the current target does not contain
@@ -1146,4 +1144,10 @@ inline bool ErrlEntry::getDoHbDump()
*/
#define ERRL_GETEID_SAFE(errhdl) (errhdl == NULL ? 0 : errhdl->eid())
+// These defines allow standard logging of error information in traces
+#define TRACE_ERR_FMT "Error info: PLID=0x%08X, EID=0x%08X, Reason=0x%04X. "
+
+#define TRACE_ERR_ARGS(pError) \
+ ERRL_GETPLID_SAFE(pError), ERRL_GETEID_SAFE(pError), ERRL_GETRC_SAFE(pError)
+
#endif //ERRLENTRY_H
OpenPOWER on IntegriCloud