Fix a bad error traces
There are couple of places where we are trying to print
the 8 bit value, and it std::cout cannot display those directly,
we need to typecast it to an integer.
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: Ibaa212de28e125fd6904c0a7b1f5b5f8c0609d51
diff --git a/libpldmresponder/base.cpp b/libpldmresponder/base.cpp
index dcb6fd6..572f8f1 100644
--- a/libpldmresponder/base.cpp
+++ b/libpldmresponder/base.cpp
@@ -217,7 +217,7 @@
if (rc || completionCode)
{
std::cerr << "Failed to decode setEventReceiver command response,"
- << " rc=" << rc << "cc=" << (uint8_t)completionCode
+ << " rc=" << rc << "cc=" << (unsigned)completionCode
<< "\n";
pldm::utils::reportError(
"xyz.openbmc_project.bmc.pldm.InternalFailure");