From 991c17e9b12aba8de537bf44f00109b6311f8e6c Mon Sep 17 00:00:00 2001 From: Volodymyr Bendiuga Date: Mon, 21 May 2018 16:28:32 +0200 Subject: [PATCH] tc:flower: print ip attribute correctly Signed-off-by: Volodymyr Bendiuga --- tc/f_flower.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tc/f_flower.c b/tc/f_flower.c index 74059bb29..f2f4ce91b 100644 --- a/tc/f_flower.c +++ b/tc/f_flower.c @@ -1208,10 +1208,10 @@ static void flower_print_ip_attr(const char *name, struct rtattr *key_attr, done = sprintf(out, "0x%x", rta_getattr_u8(key_attr)); if (mask_attr) - sprintf(out + done, "/%x", rta_getattr_u8(mask_attr)); + sprintf(out + done, "/0x%x", rta_getattr_u8(mask_attr)); print_string(PRINT_FP, NULL, "%s ", _SL_); - sprintf(namefrm, "%s %%s", name); + sprintf(namefrm, "\n %s %%s", name); print_string(PRINT_ANY, name, namefrm, out); }