]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ingress: Don't break JSON output
authorToke Høiland-Jørgensen <toke@toke.dk>
Wed, 25 Apr 2018 09:29:46 +0000 (11:29 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 25 Apr 2018 18:08:39 +0000 (11:08 -0700)
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 <toke@toke.dk>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/q_ingress.c

index 1e4222984d891283e5347b74506c85e57d50dc2f..93313c9c2aec6edf41b51336df4466926be35033 100644 (file)
@@ -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;
 }