Message ID | 20240209235612.404888-1-stephen@networkplumber.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 46031294e3e20356b0bb64f1dfe8c6c57e4d8764 |
Delegated to: | David Ahern |
Headers | show |
Series | [iproute2,1/2] tc: bpf: fix extra newline in JSON output | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
Hello: This series was applied to iproute2/iproute2.git (main) by Stephen Hemminger <stephen@networkplumber.org>: On Fri, 9 Feb 2024 15:55:56 -0800 you wrote: > Don't print newline at end of bpf if in JSON mode. > > Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> > --- > tc/m_bpf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Here is the summary with links: - [iproute2,1/2] tc: bpf: fix extra newline in JSON output https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=46031294e3e2 - [iproute2,2/2] tc: print unknown action on stderr https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=b958d3c25dcc You are awesome, thank you!
diff --git a/tc/m_bpf.c b/tc/m_bpf.c index 4eadcb6daac4..da50c05e1529 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; }
Don't print newline at end of bpf if in JSON mode. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> --- tc/m_bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)