tc: print errors on stderr
Subsystems (2)
PATCH 1/1 tc: print errors on stderr
Don't mix output and errors.
Signed-off-by Stephen Hemminger <[email protected]>
--- tc/tc_class.c | 2 +- tc/tc_monitor.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
tc/tc_class.c +1 -1
@@ -365,7 +365,7 @@ int print_class(struct nlmsghdr *n, void *arg)if (q && q->print_copt) q->print_copt (q, fp, tb[TCA_OPTIONS ]);else -fprintf (fp,"[cannot parse class parameters]" ); +fprintf (stderr,"[cannot parse class parameters]" ); }fprintf (fp,"\n" );if (show_stats) {
tc/tc_monitor.c +1 -1
@@ -67,7 +67,7 @@ static int accept_tcmsg(struct rtnl_ctrl_data *ctrl, }if (n->nlmsg_type !=NLMSG_ERROR && n->nlmsg_type !=NLMSG_NOOP && n->nlmsg_type !=NLMSG_DONE ) { -fprintf (fp,"Unknown message: length %08d type %08x flags %08x\n" , +fprintf (stderr,"Unknown message: length %08d type %08x flags %08x\n" , n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags); }return 0 ;
Signature · 1 line
2.35.1
This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:
Hello:
This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:
Quoted 7 lines · On Fri, 9 Dec 2022 19:47:36 -0800 you wrote:
Don't mix output and errors.
Signed-off-by Stephen Hemminger <[email protected]>--- tc/tc_class.c | 2 +- tc/tc_monitor.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Here is the summary with links:
- tc: print errors on stderr
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=523692fa17e3
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html