PEL: Print list of PELs
PelTool commands for printing a list of PELs.
PEL list sample:
{
"0x50000004": {
"SRC": "BD8D1001",
"PLID": "0x50000004",
"CreatorID": "BMC",
"Subsystem": "bmc_firmware",
"Commit Time": "10/24/2019 15:50:08",
"Sev": "unrecoverable",
"CompID": "0x1000"
}
}
Change-Id: Ifd864a6561c09de098689195edcf107b3fe550e3
Signed-off-by: Aatir <aatrapps@gmail.com>
diff --git a/extensions/openpower-pels/user_header.hpp b/extensions/openpower-pels/user_header.hpp
index 5689a1c..6692dd3 100644
--- a/extensions/openpower-pels/user_header.hpp
+++ b/extensions/openpower-pels/user_header.hpp
@@ -173,6 +173,15 @@
*/
std::optional<std::string> getJSON() const override;
+ /**
+ * @brief Helper function to get values from lookup tables.
+ * @return std::string - the value
+ * @param[in] uint8_t - field to get value for
+ * @param[in] PELValues - lookup table
+ */
+ std::string getValue(const uint8_t field,
+ const pel_values::PELValues& values) const;
+
private:
/**
* @brief Fills in the object from the stream data
@@ -232,15 +241,6 @@
* @brief The second reserved word placeholder.
*/
uint32_t _reserved4Byte2;
-
- /**
- * @brief Helper function to get values from lookup tables.
- * @return std::string - the value
- * @param[in] uint8_t - field to get value for
- * @param[in] PELValues - lookup table
- */
- std::string getValue(const uint8_t field,
- const pel_values::PELValues& values) const;
};
} // namespace pels