|
@@ -150,15 +150,17 @@ static void print_nx_checkstop_reason(const char *level,
|
|
|
static void print_checkstop_reason(const char *level,
|
|
|
struct OpalHMIEvent *hmi_evt)
|
|
|
{
|
|
|
- switch (hmi_evt->u.xstop_error.xstop_type) {
|
|
|
+ uint8_t type = hmi_evt->u.xstop_error.xstop_type;
|
|
|
+ switch (type) {
|
|
|
case CHECKSTOP_TYPE_CORE:
|
|
|
print_core_checkstop_reason(level, hmi_evt);
|
|
|
break;
|
|
|
case CHECKSTOP_TYPE_NX:
|
|
|
print_nx_checkstop_reason(level, hmi_evt);
|
|
|
break;
|
|
|
- case CHECKSTOP_TYPE_UNKNOWN:
|
|
|
- printk("%s Unknown Malfunction Alert.\n", level);
|
|
|
+ default:
|
|
|
+ printk("%s Unknown Malfunction Alert of type %d\n",
|
|
|
+ level, type);
|
|
|
break;
|
|
|
}
|
|
|
}
|