diff options
| author | Dan Crowell <dcrowell@us.ibm.com> | 2013-07-16 11:13:11 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-07-30 16:43:06 -0500 |
| commit | 12ff45d42b4fa04bdbf36ed36147b5c07e36939f (patch) | |
| tree | 2d675ac72aa7f74745c2653bad7a2e26ecbc791d /src/include/usr/errl | |
| parent | b24fe45bee8160d77f130161267ba5a575098a77 (diff) | |
| download | blackbird-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.H | 15 |
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 |

