From 6ad5399c3ab72306e009a5e621f9f54c625413a7 Mon Sep 17 00:00:00 2001 From: Nicolas Dichtel Date: Tue, 9 Sep 2014 16:55:11 +0200 Subject: [PATCH] ip/vxlan: fix display of maxaddress option Parenthesis are required else maxaddr value is a bool and thus output is always 1 when the option is set. Signed-off-by: Nicolas Dichtel --- ip/iplink_vxlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip/iplink_vxlan.c b/ip/iplink_vxlan.c index 8aa25cd5f..d92cfe815 100644 --- a/ip/iplink_vxlan.c +++ b/ip/iplink_vxlan.c @@ -361,7 +361,7 @@ static void vxlan_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) } if (tb[IFLA_VXLAN_LIMIT] && - (maxaddr = rta_getattr_u32(tb[IFLA_VXLAN_LIMIT]) != 0)) + ((maxaddr = rta_getattr_u32(tb[IFLA_VXLAN_LIMIT])) != 0)) fprintf(f, "maxaddr %u ", maxaddr); } -- 2.47.2