psu-ng: Change PMBus command response to uppercase
It seems a bit odd to me to use a lower case, or mixed case format for
tracing the values returned by various PMBus commands that are expressed
in all uppercase in the PMBus specification.
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: I4f20bb302048635caf092a0461aac06b23435a00
diff --git a/phosphor-power-supply/power_supply.cpp b/phosphor-power-supply/power_supply.cpp
index 96dfaa0..9d8c914 100644
--- a/phosphor-power-supply/power_supply.cpp
+++ b/phosphor-power-supply/power_supply.cpp
@@ -213,11 +213,12 @@
{
if (!inputFault)
{
- log<level::INFO>(fmt::format("INPUT fault: "
- "status word = {:#04x}, "
- "MFR fault = {:#02x}",
- statusWord, statusMFR)
- .c_str());
+ log<level::INFO>(
+ fmt::format("INPUT fault: "
+ "STATUS_WORD = {:#04x}, "
+ "STATUS_MFR_SPECIFIC = {:#02x}",
+ statusWord, statusMFR)
+ .c_str());
}
faultFound = true;
@@ -228,11 +229,12 @@
{
if (!mfrFault)
{
- log<level::ERR>(fmt::format("MFR fault: "
- "status word = {:#04x} "
- "MFR fault = {:#02x}",
- statusWord, statusMFR)
- .c_str());
+ log<level::ERR>(
+ fmt::format("MFR fault: "
+ "STATUS_WORD = {:#04x} "
+ "STATUS_MFR_SPECIFIC = {:#02x}",
+ statusWord, statusMFR)
+ .c_str());
}
faultFound = true;
mfrFault = true;
@@ -242,11 +244,12 @@
{
if (!vinUVFault)
{
- log<level::INFO>(fmt::format("VIN_UV fault: "
- "status word = {:#04x}, "
- "MFR fault = {:#02x}",
- statusWord, statusMFR)
- .c_str());
+ log<level::INFO>(
+ fmt::format("VIN_UV fault: "
+ "STATUS_WORD = {:#04x}, "
+ "STATUS_MFR_SPECIFIC = {:#02x}",
+ statusWord, statusMFR)
+ .c_str());
}
faultFound = true;