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

monitor: Fix ARRAY output

Commit 3ff9f59ba1 ("monitor: Print MAC_ADDRS array") introduced a
small bug where some arguments were erroneously printed as an address.
This commit is contained in:
Denis Kenzior 2019-06-22 12:38:35 -05:00
parent 397699c9c5
commit cd67e66f8e

View File

@ -3969,6 +3969,9 @@ 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;
case ATTR_ADDRESS:
print_address(indent, label, buf);
break;
case ATTR_UNSPEC: case ATTR_UNSPEC:
case ATTR_FLAG: case ATTR_FLAG:
case ATTR_U8: case ATTR_U8:
@ -3977,9 +3980,6 @@ static void print_value(int indent, const char *label, enum attr_type type,
case ATTR_S32: case ATTR_S32:
case ATTR_S64: case ATTR_S64:
case ATTR_STRING: case ATTR_STRING:
case ATTR_ADDRESS:
print_address(indent, label, buf);
break;
case ATTR_BINARY: case ATTR_BINARY:
case ATTR_NESTED: case ATTR_NESTED:
case ATTR_ARRAY: case ATTR_ARRAY: