diff options
author | Harisuddin Mohamed Isa <harisuddin@gmail.com> | 2020-02-06 17:32:38 +0800 |
---|---|---|
committer | Matt Spinler <spinler@us.ibm.com> | 2020-02-07 16:02:00 +0000 |
commit | e2d1bf317c0ddf25ddd305aa8f3c6f09118f799c (patch) | |
tree | de330de70c2a62ce6785bca2dae1faee0f89a50e /extensions/openpower-pels/failing_mtms.hpp | |
parent | 6fd0c1e70c1f63c44ffa69308569b1be144451ce (diff) | |
download | phosphor-logging-e2d1bf317c0ddf25ddd305aa8f3c6f09118f799c.tar.gz phosphor-logging-e2d1bf317c0ddf25ddd305aa8f3c6f09118f799c.zip |
PEL: Print Failing MTMS section into JSON
Remove any trailing whitespace for serial number.
"Failing MTMS": {
"Section Version": "1",
"Sub-section type": "0",
"Created by": "0x4552",
"Machine Type Model": "OPWR-131",
"Serial Number": "1318ABA"
},
Testing: Manually run peltool and verified output. All unit tests
passed.
Signed-off-by: Harisuddin Mohamed Isa <harisuddin@gmail.com>
Change-Id: I7a05790bdf406ef6d7946ffae831a45ee6dd5cda
Diffstat (limited to 'extensions/openpower-pels/failing_mtms.hpp')
-rw-r--r-- | extensions/openpower-pels/failing_mtms.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extensions/openpower-pels/failing_mtms.hpp b/extensions/openpower-pels/failing_mtms.hpp index 65186eb..8f5cd44 100644 --- a/extensions/openpower-pels/failing_mtms.hpp +++ b/extensions/openpower-pels/failing_mtms.hpp @@ -81,6 +81,12 @@ class FailingMTMS : public Section return _mtms.machineSerialNumber(); } + /** + * @brief Get section in JSON. + * @return std::optional<std::string> - Failing MTMS section in JSON + */ + std::optional<std::string> getJSON() const override; + private: /** * @brief Validates the section contents |