From aae4f82eb83d923f59a328d6e13396f424be28f9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 17 Oct 2007 16:36:49 +0000 Subject: [PATCH iptables] print warnings to stderr iptables prints some of its error messages and warnings to stdout. This patch applies to svn r7075 and will make iptables print diagnostic messages to stderr instead. Signed-off-by: Max Kellermann --- xtables.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'xtables.c') diff --git a/xtables.c b/xtables.c index 58b4e81b..6107119f 100644 --- a/xtables.c +++ b/xtables.c @@ -246,9 +246,10 @@ void parse_interface(const char *arg, char *vianame, unsigned char *mask) if (vianame[i] == ':' || vianame[i] == '!' || vianame[i] == '*') { - printf("Warning: weird character in interface" - " `%s' (No aliases, :, ! or *).\n", - vianame); + fprintf(stderr, + "Warning: weird character in interface" + " `%s' (No aliases, :, ! or *).\n", + vianame); break; } } -- cgit v1.2.3