]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
tc: Fix filter protocol output
authorJamal Hadi Salim <jhs@mojatatu.com>
Sun, 7 Jan 2018 14:43:28 +0000 (09:43 -0500)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 9 Jan 2018 16:09:10 +0000 (08:09 -0800)
Fixes: 249284ff5a44 ("tc: jsonify filter core")
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
tc/tc_filter.c

index 545cc3a1460d8d5777ee587d58f2823461964d73..546311a8135ccb68658a7b6ec2968f52920d7294 100644 (file)
@@ -276,7 +276,7 @@ int print_filter(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
                if (!filter_protocol || filter_protocol != f_proto) {
                        if (f_proto) {
                                SPRINT_BUF(b1);
-                               print_string(PRINT_JSON, "protocol",
+                               print_string(PRINT_ANY, "protocol",
                                             "protocol %s ",
                                             ll_proto_n2a(f_proto, b1, sizeof(b1)));
                        }