peltool: Add option to print PEL hexdump

This adds the "-x" option to simply hexdump PELs instead of parsing and
printing to JSON, for use with the --file, -i or -a options.

Signed-off-by: Harisuddin Mohamed Isa <harisuddin@gmail.com>
Change-Id: I13cc76ea36cca761ffa1cf3ab38a638e424bde83
diff --git a/extensions/openpower-pels/json_utils.hpp b/extensions/openpower-pels/json_utils.hpp
index 71a85e3..f6db297 100644
--- a/extensions/openpower-pels/json_utils.hpp
+++ b/extensions/openpower-pels/json_utils.hpp
@@ -27,9 +27,12 @@
  * @param[in] const void* data - Raw PEL data
  * @param[i] size_t size - size of Raw PEL
  * @param[in] size_t indentCount - The number of indent levels to indent
+ * @param[in] bool toJson - if true, output lines as JSON array, else print
+ *            output as plain text
  * @return char * - the Hex dump
  */
-char* dumpHex(const void* data, size_t size, size_t indentCount);
+char* dumpHex(const void* data, size_t size, size_t indentCount,
+              bool toJson = true);
 
 /**
  * @brief Inserts key-value into a JSON string