Rectify few error messages in pldm
There are few places where we try to print a datatype that
is not supported by stdcout/ stdcerr.
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: Ic069fd92ec48bcb0058bcb4d7140e5f59909ca49
diff --git a/requester/handler.hpp b/requester/handler.hpp
index 319cb8e..1bb9cc4 100644
--- a/requester/handler.hpp
+++ b/requester/handler.hpp
@@ -134,10 +134,10 @@
{
std::cerr << "Response not received for the request, instance "
"ID expired."
- << " EID = " << key.eid
- << " INSTANCE_ID = " << key.instanceId
- << " TYPE = " << key.type
- << " COMMAND = " << key.command << "\n";
+ << " EID = " << (unsigned)key.eid
+ << " INSTANCE_ID = " << (unsigned)key.instanceId
+ << " TYPE = " << (unsigned)key.type
+ << " COMMAND = " << (unsigned)key.command << "\n";
auto& [request, responseHandler, timerInstance] =
this->handlers[key];
request->stop();