]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/m_skbmod.c
tc: print all error messages to stderr
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 9 Jul 2019 21:25:14 +0000 (14:25 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 11 Jul 2019 22:35:07 +0000 (15:35 -0700)
commitd5ddb441a52cc0da65de69a667569aa12f5c30cb
treea84078d311893c41b55bdbeffaa87b02a32275e4
parent1f250b6c5375277b1d6943358903121e491d9bca
tc: print all error messages to stderr

Many tc modules were printing error messages to stdout.
This is problematic if using JSON or other output formats.
Change all these places to use fprintf(stderr, ...) instead.

Also, remove unnecessary initialization and places
where else is used after error return.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
19 files changed:
tc/m_bpf.c
tc/m_connmark.c
tc/m_csum.c
tc/m_gact.c
tc/m_ife.c
tc/m_ipt.c
tc/m_mirred.c
tc/m_nat.c
tc/m_pedit.c
tc/m_sample.c
tc/m_simple.c
tc/m_skbedit.c
tc/m_skbmod.c
tc/m_tunnel_key.c
tc/m_vlan.c
tc/m_xt.c
tc/m_xt_old.c
tc/tc_filter.c
tc/tc_qdisc.c