From fc37e59e2f85e585ee830e801b5b26a2c859c86b Mon Sep 17 00:00:00 2001 From: Vernon Mauery Date: Wed, 19 Dec 2018 14:55:15 -0800 Subject: netipmid: replace std::cerr with phosphor::logging calls This is part of a cleanup and standardization effort of code to get existing code up to date. Change-Id: I0c982ef8d7afa2f56a9cd204bb8ac3112769641c Signed-off-by: Vernon Mauery --- message_handler.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'message_handler.cpp') diff --git a/message_handler.cpp b/message_handler.cpp index 68c1b60..e98955b 100644 --- a/message_handler.cpp +++ b/message_handler.cpp @@ -8,11 +8,13 @@ #include -#include #include +#include #include #include +using namespace phosphor::logging; + namespace message { @@ -27,7 +29,7 @@ std::shared_ptr Handler::receive() // Read of the packet failed if (readStatus < 0) { - std::cerr << "E> Error in Read : " << std::hex << readStatus << "\n"; + log("Error in Read", entry("STATUS=%x", readStatus)); return nullptr; } -- cgit v1.2.3