]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: remove action cookie len from printout
authorJiri Pirko <jiri@mellanox.com>
Sat, 25 Nov 2017 10:07:57 +0000 (11:07 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 26 Nov 2017 20:18:38 +0000 (12:18 -0800)
Make the output same as input and avoid printout of unnecessary len.

Suggested-by: Stephen Hemminger <stephen@networkplumber.org>
Fixes: fd8b3d2c1b9b ("actions: Add support for user cookies")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
tc/m_action.c

index aa3aa52ea0bbf76446b5021b43be4c24ee55d5ad..e6d914982ef25407e07640d3dba2a43e27731cb1 100644 (file)
@@ -309,7 +309,7 @@ static int tc_print_one_action(FILE *f, struct rtattr *arg)
                int strsz = RTA_PAYLOAD(tb[TCA_ACT_COOKIE]);
                char b1[strsz * 2 + 1];
 
-               fprintf(f, "\tcookie len %d %s\n", strsz,
+               fprintf(f, "\tcookie %s\n",
                        hexstring_n2a(RTA_DATA(tb[TCA_ACT_COOKIE]),
                                      strsz, b1, sizeof(b1)));
        }