[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180420171519.8028-4-stephen@networkplumber.org>
Date: Fri, 20 Apr 2018 10:15:17 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: alin.nastac@...il.com
Cc: netdev@...r.kernel.org,
Stephen Hemminger <stephen@...workplumber.org>
Subject: [RFC iproute 3/5] flower: use 16 bit format where possible
Should use print_hu not print_uint for 16 bit value.
Signed-off-by: Stephen Hemminger <stephen@...workplumber.org>
---
tc/f_flower.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tc/f_flower.c b/tc/f_flower.c
index 9d4bfd2f808b..ba8eb66cdd11 100644
--- a/tc/f_flower.c
+++ b/tc/f_flower.c
@@ -1234,7 +1234,7 @@ static void flower_print_port(char *name, struct rtattr *attr)
return;
sprintf(namefrm,"\n %s %%u", name);
- print_uint(PRINT_ANY, name, namefrm, rta_getattr_be16(attr));
+ print_hu(PRINT_ANY, name, namefrm, rta_getattr_be16(attr));
}
static void flower_print_tcp_flags(char *name, struct rtattr *flags_attr,
--
2.17.0
Powered by blists - more mailing lists