3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 18:59:22 +01:00

monitor: List all enum values in switch statement

This commit is contained in:
Marcel Holtmann 2018-12-07 09:04:36 +01:00
parent 42f5d905b1
commit 5e31b194e2

View File

@ -3650,7 +3650,20 @@ static void print_value(int indent, const char *label, enum attr_type type,
if (len != 4) if (len != 4)
printf("malformed packet\n"); printf("malformed packet\n");
break; break;
default: case ATTR_UNSPEC:
case ATTR_FLAG:
case ATTR_U8:
case ATTR_U64:
case ATTR_S8:
case ATTR_S32:
case ATTR_S64:
case ATTR_STRING:
case ATTR_ADDRESS:
case ATTR_BINARY:
case ATTR_NESTED:
case ATTR_ARRAY:
case ATTR_FLAG_OR_U16:
case ATTR_CUSTOM:
print_attr(indent, "%s: len %u", label, len); print_attr(indent, "%s: len %u", label, len);
print_hexdump(indent + 1, buf, len); print_hexdump(indent + 1, buf, len);
break; break;