ingress: Don't break JSON output

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>
This commit is contained in:
Toke Høiland-Jørgensen 2018-04-25 11:29:46 +02:00 committed by Stephen Hemminger
parent f5393225f9
commit bf717756b5
1 changed files with 1 additions and 1 deletions

View 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, static int ingress_print_opt(struct qdisc_util *qu, FILE *f,
struct rtattr *opt) struct rtattr *opt)
{ {
fprintf(f, "---------------- "); print_string(PRINT_FP, NULL, "---------------- ", NULL);
return 0; return 0;
} }