fixup: CI is x86-64, build is 32, cast down for debug
The fprintfs were promoted to %lu to make CI work, which then broke the
ARM build. Therefore need to cast to make it happy in both
environments.
Change-Id: Ibba14d8aa19aca44c9ce9b65b66dd79659ce126e
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/psu.cpp b/psu.cpp
index 1a4d556..addf0d1 100644
--- a/psu.cpp
+++ b/psu.cpp
@@ -48,7 +48,8 @@
{
if ((*dataLen) < sizeof(struct PsuResetRequest))
{
- fprintf(stderr, "Invalid command length: %lu\n", (*dataLen));
+ fprintf(stderr, "Invalid command length: %u\n",
+ static_cast<uint32_t>(*dataLen));
return IPMI_CC_INVALID;
}