summaryrefslogtreecommitdiffstats
path: root/src/include/usr/errl
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2013-07-16 11:13:11 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-07-30 16:43:06 -0500
commit12ff45d42b4fa04bdbf36ed36147b5c07e36939f (patch)
tree2d675ac72aa7f74745c2653bad7a2e26ecbc791d /src/include/usr/errl
parentb24fe45bee8160d77f130161267ba5a575098a77 (diff)
downloadblackbird-hostboot-12ff45d42b4fa04bdbf36ed36147b5c07e36939f.tar.gz
blackbird-hostboot-12ff45d42b4fa04bdbf36ed36147b5c07e36939f.zip
Support SPIRA-H HDAT Format
Change-Id: If87eedf15c1ef96ea00c1a5574ad1f6b72e697b5 RTC: 71881 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5498 Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/errl')
-rw-r--r--src/include/usr/errl/errlentry.H15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/usr/errl/errlentry.H b/src/include/usr/errl/errlentry.H
index a4c27ea4d..fc06f7b4e 100644
--- a/src/include/usr/errl/errlentry.H
+++ b/src/include/usr/errl/errlentry.H
@@ -716,4 +716,19 @@ inline void ErrlEntry::setSrcType(const srcType_t i_srcType)
} // End namespace
+/**
+ * Retrieve the RC inside an error log, or return zero if the log is NULL
+ */
+#define ERRL_GETRC_SAFE(errhdl) (errhdl == NULL ? 0 : errhdl->reasonCode())
+
+/**
+ * Retrieve the PLID inside an error log, or return zero if the log is NULL
+ */
+#define ERRL_GETPLID_SAFE(errhdl) (errhdl == NULL ? 0 : errhdl->plid())
+
+/**
+ * Retrieve the EID inside an error log, or return zero if the log is NULL
+ */
+#define ERRL_GETEID_SAFE(errhdl) (errhdl == NULL ? 0 : errhdl->eid())
+
#endif //ERRLENTRY_H
OpenPOWER on IntegriCloud