[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240209235612.404888-2-stephen@networkplumber.org>
Date: Fri, 9 Feb 2024 15:55:57 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: netdev@...r.kernel.org
Cc: Stephen Hemminger <stephen@...workplumber.org>
Subject: [PATCH iproute2 2/2] tc: print unknown action on stderr
This is an error, and should not go to stdout.
Signed-off-by: Stephen Hemminger <stephen@...workplumber.org>
---
tc/m_action.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tc/m_action.c b/tc/m_action.c
index 16474c56118c..f180ba09778c 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;
}
--
2.43.0
Powered by blists - more mailing lists