all: Use stdplus::print over std::fprintf
Replacing `std::fprintf` with `stdplus::print`.
No logical change.
Tested: Buildable.
Signed-off-by: Michael Shen <gpgpgp@google.com>
Change-Id: I7050885c13e33244a4128aa519d163fd5b725098
diff --git a/entity_name.cpp b/entity_name.cpp
index 8048ce8..8d12bfe 100644
--- a/entity_name.cpp
+++ b/entity_name.cpp
@@ -19,6 +19,7 @@
#include "handler.hpp"
#include <ipmid/api-types.hpp>
+#include <stdplus/print.hpp>
#include <cstdint>
#include <cstring>
@@ -53,8 +54,7 @@
if (data.size() < sizeof(request))
{
- std::fprintf(stderr, "Invalid command length: %u\n",
- static_cast<uint32_t>(data.size()));
+ stdplus::print(stderr, "Invalid command length: {}\n", data.size());
return ::ipmi::responseReqDataLenInvalid();
}
@@ -75,7 +75,7 @@
// TODO (jaghu) : Add a call to get getChannelMaxTransferSize.
if (length > MAX_IPMI_BUFFER)
{
- std::fprintf(stderr, "Response would overflow response buffer\n");
+ stdplus::print(stderr, "Response would overflow response buffer\n");
return ::ipmi::responseInvalidCommand();
}