Commit bd97a63f authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller

sfc: Log clearer error messages for hardware monitor

Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 477e54eb
...@@ -108,10 +108,15 @@ static int efx_check_lm87(struct efx_nic *efx, unsigned mask) ...@@ -108,10 +108,15 @@ static int efx_check_lm87(struct efx_nic *efx, unsigned mask)
if (alarms1 || alarms2) { if (alarms1 || alarms2) {
netif_err(efx, hw, efx->net_dev, netif_err(efx, hw, efx->net_dev,
"LM87 detected a hardware failure (status %02x:%02x)" "LM87 detected a hardware failure (status %02x:%02x)"
"%s%s\n", "%s%s%s\n",
alarms1, alarms2, alarms1, alarms2,
(alarms1 & LM87_ALARM_TEMP_INT) ? " INTERNAL" : "", (alarms1 & LM87_ALARM_TEMP_INT) ?
(alarms1 & LM87_ALARM_TEMP_EXT1) ? " EXTERNAL" : ""); "; board is overheating" : "",
(alarms1 & LM87_ALARM_TEMP_EXT1) ?
"; controller is overheating" : "",
(alarms1 & ~(LM87_ALARM_TEMP_INT | LM87_ALARM_TEMP_EXT1)
|| alarms2) ?
"; electrical fault" : "");
return -ERANGE; return -ERANGE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment