@@ -29,25 +29,20 @@ static int bnxt_fw_reporter_diagnose(struct devlink_health_reporter *reporter,
29
29
val = bnxt_fw_health_readl (bp , BNXT_FW_HEALTH_REG );
30
30
health_status = val & 0xffff ;
31
31
32
- if (health_status == BNXT_FW_STATUS_HEALTHY ) {
33
- rc = devlink_fmsg_string_pair_put (fmsg , "FW status" ,
34
- "Healthy;" );
35
- if (rc )
36
- return rc ;
37
- } else if (health_status < BNXT_FW_STATUS_HEALTHY ) {
38
- rc = devlink_fmsg_string_pair_put (fmsg , "FW status" ,
39
- "Not yet completed initialization;" );
32
+ if (health_status < BNXT_FW_STATUS_HEALTHY ) {
33
+ rc = devlink_fmsg_string_pair_put (fmsg , "Description" ,
34
+ "Not yet completed initialization" );
40
35
if (rc )
41
36
return rc ;
42
37
} else if (health_status > BNXT_FW_STATUS_HEALTHY ) {
43
- rc = devlink_fmsg_string_pair_put (fmsg , "FW status " ,
44
- "Encountered fatal error and cannot recover; " );
38
+ rc = devlink_fmsg_string_pair_put (fmsg , "Description " ,
39
+ "Encountered fatal error and cannot recover" );
45
40
if (rc )
46
41
return rc ;
47
42
}
48
43
49
44
if (val >> 16 ) {
50
- rc = devlink_fmsg_u32_pair_put (fmsg , "Error" , val >> 16 );
45
+ rc = devlink_fmsg_u32_pair_put (fmsg , "Error code " , val >> 16 );
51
46
if (rc )
52
47
return rc ;
53
48
}
0 commit comments