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/psu.cpp b/psu.cpp
index 7f7a5b3..280dbe0 100644
--- a/psu.cpp
+++ b/psu.cpp
@@ -19,6 +19,7 @@
#include "handler.hpp"
#include <ipmid/api-types.hpp>
+#include <stdplus/print.hpp>
#include <cstdint>
#include <cstring>
@@ -37,8 +38,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();
}