psu-ng: Change fault traces from INFO to ERR
Having fault bits on in the various PMBus STATUS_* commands responses is
basically bad, an error. Change the journal tracing from
log<level::INFO> to log<level::ERR>.
Tested:
Verified that tracing for power supply fault bits is red.
Tested CML fault, INPUT fault, and VOUT faults.
Change-Id: If3efda267799630b1bb560347392b03ca73a79f1
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
diff --git a/phosphor-power-supply/power_supply.cpp b/phosphor-power-supply/power_supply.cpp
index 2102e53..3f3a595 100644
--- a/phosphor-power-supply/power_supply.cpp
+++ b/phosphor-power-supply/power_supply.cpp
@@ -217,7 +217,7 @@
{
if (!cmlFault)
{
- log<level::INFO>(
+ log<level::ERR>(
fmt::format("CML fault: STATUS_WORD = {:#04x}, "
"STATUS_CML = {:#02x}",
statusWord, statusCML)
@@ -231,7 +231,7 @@
{
if (!inputFault)
{
- log<level::INFO>(
+ log<level::ERR>(
fmt::format("INPUT fault: STATUS_WORD = {:#04x}, "
"STATUS_MFR_SPECIFIC = {:#02x}, "
"STATUS_INPUT = {:#02x}",
@@ -247,7 +247,7 @@
{
if (!voutOVFault)
{
- log<level::INFO>(
+ log<level::ERR>(
fmt::format("INPUT fault: STATUS_WORD = {:#04x}, "
"STATUS_MFR_SPECIFIC = {:#02x}, "
"STATUS_VOUT = {:#02x}",
@@ -277,7 +277,7 @@
{
if (!vinUVFault)
{
- log<level::INFO>(
+ log<level::ERR>(
fmt::format("VIN_UV fault: STATUS_WORD = {:#04x}, "
"STATUS_MFR_SPECIFIC = {:#02x}, "
"STATUS_INPUT = {:#02x}",