summaryrefslogtreecommitdiffstats
path: root/src/include/usr/errl
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/errl')
-rw-r--r--src/include/usr/errl/errlentry.H10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/include/usr/errl/errlentry.H b/src/include/usr/errl/errlentry.H
index dede1c21b..4a3c8a634 100644
--- a/src/include/usr/errl/errlentry.H
+++ b/src/include/usr/errl/errlentry.H
@@ -98,6 +98,12 @@ class ErrlEntry
friend class ErrlTest;
public:
+ /** Constants to use in constructor */
+ static constexpr bool ADD_SW_CALLOUT = true;
+ static constexpr bool NO_SW_CALLOUT = false;
+ static constexpr bool FORCE_DUMP = true;
+ static constexpr bool NO_FORCE_DUMP = false;
+
/**
* @brief ErrlEntry constructor. Builds an error log with info
* constructed from the input.
@@ -137,8 +143,8 @@ public:
const uint16_t i_reasonCode,
const uint64_t i_user1 = 0,
const uint64_t i_user2 = 0,
- const bool i_hbSwError = false,
- const bool i_hbDump = false );
+ const bool i_hbSwError = ErrlEntry::NO_SW_CALLOUT,
+ const bool i_hbDump = ErrlEntry::NO_FORCE_DUMP );
/**
* @brief Destructor
OpenPOWER on IntegriCloud