From bf717756b50dc96b27d66c5247a5d543c5f75168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= Date: Wed, 25 Apr 2018 11:29:46 +0200 Subject: [PATCH] ingress: Don't break JSON output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The dash printed by the ingress qdisc breaks JSON output, so only print it in regular output mode. Signed-off-by: Toke Høiland-Jørgensen Signed-off-by: Stephen Hemminger --- tc/q_ingress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tc/q_ingress.c b/tc/q_ingress.c index 1e422298..93313c9c 100644 --- a/tc/q_ingress.c +++ b/tc/q_ingress.c @@ -40,7 +40,7 @@ static int ingress_parse_opt(struct qdisc_util *qu, int argc, char **argv, static int ingress_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) { - fprintf(f, "---------------- "); + print_string(PRINT_FP, NULL, "---------------- ", NULL); return 0; }