Raw frame printer update
diff --git a/ref_trace_decoder/tests/source/raw_frame_printer.cpp b/ref_trace_decoder/tests/source/raw_frame_printer.cpp
index 04b38bf..7200cc7 100644
--- a/ref_trace_decoder/tests/source/raw_frame_printer.cpp
+++ b/ref_trace_decoder/tests/source/raw_frame_printer.cpp
@@ -60,7 +60,7 @@
case RCTDL_FRM_PACKED: oss << std::setw(15) << "RAW_PACKED; "; break;
case RCTDL_FRM_HSYNC: oss << std::setw(15) << "HSYNC; "; break;
case RCTDL_FRM_FSYNC: oss << std::setw(15) << "FSYNC; "; break;
- case RCTDL_FRM_ID_DATA: oss << std::setw(10) << "ID_DATA[0x" << std::hex << std::setw(2) << (uint16_t)traceID << "]; "; break;
+ case RCTDL_FRM_ID_DATA: oss << std::setw(10) << "ID_DATA[0x" << std::hex << std::setw(2) << std::setfill('0') << (uint16_t)traceID << "]; "; break;
default: oss << std::setw(15) << "UNKNOWN; "; break;
}
@@ -87,7 +87,7 @@
oss << std::endl;
lineBytes = 0;
}
- oss << std::hex << std::setw(2) <<std::setfill('0') << (uint32_t)pData[i] << " ";
+ oss << std::hex << std::setw(2) << std::setfill('0') << (uint32_t)pData[i] << " ";
lineBytes ++;
}
dataStr = oss.str();