From 24a5a48e2735e5f1ef82b91aaae2e657d15e1cbe Mon Sep 17 00:00:00 2001 From: Jamal Hadi Salim Date: Sun, 7 Jan 2018 09:43:28 -0500 Subject: [PATCH] tc: Fix filter protocol output Fixes: 249284ff5a44 ("tc: jsonify filter core") Signed-off-by: Jamal Hadi Salim Acked-by: Jiri Pirko --- tc/tc_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tc/tc_filter.c b/tc/tc_filter.c index 545cc3a14..546311a81 100644 --- a/tc/tc_filter.c +++ b/tc/tc_filter.c @@ -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))); } -- 2.47.2