Dump id needs to be hex dump files
The dump ID is written as decimal in the dump files collected from SBE,
this needs to be in hexadecimal to display properly.
Change-Id: I9b2ab2fe3887992328f28c3fa7469add615d2a49
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
diff --git a/dump/sbe_dump_collector.cpp b/dump/sbe_dump_collector.cpp
index 11cd927..c0566a0 100644
--- a/dump/sbe_dump_collector.cpp
+++ b/dump/sbe_dump_collector.cpp
@@ -343,10 +343,10 @@
// Construct the filename
std::ostringstream filenameBuilder;
- filenameBuilder << std::setw(8) << std::setfill('0') << id
+ filenameBuilder << std::hex << std::setw(8) << std::setfill('0') << id
<< ".SbeDataClocks"
<< (clockState == SBE_CLOCK_ON ? "On" : "Off") << ".node"
- << static_cast<int>(nodeNum) << "." << chipName
+ << std::dec << static_cast<int>(nodeNum) << "." << chipName
<< static_cast<int>(chipPos);
auto dumpPath = path / filenameBuilder.str();