diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2024-02-09 12:57:21 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2024-02-10 09:48:55 -0800 |
commit | b958d3c25dccdf83c2499ab7f6d6931e878efa46 (patch) | |
tree | cd76a0a56e5ac07ffb28c201a84b68e372ec81ea | |
parent | 46031294e3e20356b0bb64f1dfe8c6c57e4d8764 (diff) | |
download | iproute2-b958d3c25dccdf83c2499ab7f6d6931e878efa46.tar.gz |
tc: print unknown action on stderr
This is an error, and should not go to stdout.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r-- | tc/m_action.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tc/m_action.c b/tc/m_action.c index 16474c561..f180ba097 100644 --- a/tc/m_action.c +++ b/tc/m_action.c @@ -62,7 +62,7 @@ static void act_usage(void) static int print_noaopt(struct action_util *au, FILE *f, struct rtattr *opt) { if (opt && RTA_PAYLOAD(opt)) - fprintf(f, "[Unknown action, optlen=%u] ", + fprintf(stderr, "[Unknown action, optlen=%u] ", (unsigned int) RTA_PAYLOAD(opt)); return 0; } |