From cd67e66f8e73f9f1c6c1d73f01981e47a9e150d3 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Sat, 22 Jun 2019 12:38:35 -0500 Subject: [PATCH] monitor: Fix ARRAY output Commit 3ff9f59ba1a7 ("monitor: Print MAC_ADDRS array") introduced a small bug where some arguments were erroneously printed as an address. --- monitor/nlmon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index 3b23da39..1a270a16 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -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: