Skip to content

Commit

Permalink
tc:flower: print ip attribute correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Volodymyr Bendiuga <[email protected]>
  • Loading branch information
voldymyr authored and ekez-graw committed Dec 6, 2018
1 parent bf4dd6a commit 991c17e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tc/f_flower.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 991c17e

Please sign in to comment.