diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2024-02-09 12:56:43 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2024-02-10 09:48:55 -0800 |
commit | 46031294e3e20356b0bb64f1dfe8c6c57e4d8764 (patch) | |
tree | 907d83d131d36aba73b755352e8d04777e32df2a | |
parent | 49a8b895adb4c6f737ce25448a80006251b03a9e (diff) | |
download | iproute2-46031294e3e20356b0bb64f1dfe8c6c57e4d8764.tar.gz |
tc: bpf: fix extra newline in JSON output
Don't print newline at end of bpf if in JSON mode.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r-- | tc/m_bpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tc/m_bpf.c b/tc/m_bpf.c index 4eadcb6da..da50c05e1 100644 --- a/tc/m_bpf.c +++ b/tc/m_bpf.c @@ -204,7 +204,7 @@ static int bpf_print_opt(struct action_util *au, FILE *f, struct rtattr *arg) } } - fprintf(f, "\n "); + print_string(PRINT_FP, NULL, "%s", "\n "); return 0; } |