summaryrefslogtreecommitdiffstats
path: root/extensions/openpower-pels/hexdump.hpp
diff options
context:
space:
mode:
authorHarisuddin Mohamed Isa <harisuddin@gmail.com>2019-12-20 12:42:26 +0800
committerHarisuddin Mohamed Isa <harisuddin@gmail.com>2020-01-09 00:04:34 +0800
commit600d15afba0c72ab4e7bf6769dccffffe08ca5aa (patch)
treea2d73dc372b4617636205d6556e47642500b183a /extensions/openpower-pels/hexdump.hpp
parentb3f5186e89a1ff8887e41863da39d30d373e3c08 (diff)
downloadphosphor-logging-600d15afba0c72ab4e7bf6769dccffffe08ca5aa.tar.gz
phosphor-logging-600d15afba0c72ab4e7bf6769dccffffe08ca5aa.zip
PEL: Print action flags into JSON aligned
"User Header": { "Section Version": "1", "Sub-section type": "0", "Log Committed by": "0x4552", "Subsystem": "System Hypervisor Firmware", "Event Scope": "Entire Platform", "Event Severity": "Informational Event", "Event Type": "Miscellaneous, Informational Only", "Action Flags": [ "Report Externally" ] } Testing: Manually run peltool and verified output Signed-off-by: Harisuddin Mohamed Isa <harisuddin@gmail.com> Change-Id: Ie8376953b5f1baa093fc0aa9564d50cd4208564e
Diffstat (limited to 'extensions/openpower-pels/hexdump.hpp')
-rw-r--r--extensions/openpower-pels/hexdump.hpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/extensions/openpower-pels/hexdump.hpp b/extensions/openpower-pels/hexdump.hpp
deleted file mode 100644
index bd26884..0000000
--- a/extensions/openpower-pels/hexdump.hpp
+++ /dev/null
@@ -1,33 +0,0 @@
-#pragma once
-
-#include <ctype.h>
-#include <stdio.h>
-
-#include <fstream>
-#include <iomanip>
-#include <iostream>
-#include <string>
-#include <vector>
-
-namespace openpower
-{
-namespace pels
-{
-
-/**
- * @brief escape json - use it for PEL hex dumps.
- * @param[in] std::string - the unescaped JSON as a string literal
- * @return std::string - escaped JSON string literal
- */
-std::string escapeJSON(const std::string& input);
-
-/**
- * @brief get hex dump for PEL section in json format.
- * @param[in] const void* - Raw PEL data
- * @param[i] size_t - size of Raw PEL
- * @return char * - the Hex dump
- */
-char* dumpHex(const void* data, size_t size);
-
-} // namespace pels
-} // namespace openpower
OpenPOWER on IntegriCloud