]> git.baikalelectronics.ru Git - kernel.git/commit
tools: bpftool: remove new lines from errors
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 2 Jan 2018 22:48:37 +0000 (14:48 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 4 Jan 2018 11:28:46 +0000 (12:28 +0100)
commit81558267f7eb9563d2e0fbcd227d1e8eafecf4c6
tree7ad59b3c1ad348e95e1daab86b444eb0968bbff6
parentb435c55e8168a272b20e7db04854e8c5d2544dae
tools: bpftool: remove new lines from errors

It's a little bit unusual for kernel style, but we add the new line
character to error strings inside the p_err() function.  We do this
because new lines at the end of error strings will break JSON output.

Fix a few p_err("..\n") which snuck in recently.

Fixes: 16e2435a2bd5 ("bpftool: implement cgroup bpf operations")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/cgroup.c
tools/bpf/bpftool/prog.c