3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +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)
printf("malformed packet\n");
break;
case ATTR_ADDRESS:
print_address(indent, label, buf);
break;
case ATTR_UNSPEC:
case ATTR_FLAG:
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_S64:
case ATTR_STRING:
case ATTR_ADDRESS:
print_address(indent, label, buf);
break;
case ATTR_BINARY:
case ATTR_NESTED:
case ATTR_ARRAY: