diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-11-28 00:44:46 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-11-28 00:44:46 +0100 |
commit | 35a22c2721d92c983dc130468ca48aaae46be299 (patch) | |
tree | d6f375360ad308ca88e64ec5a2227a7563d1739f /src/conntrack.c | |
parent | 9aba3974d60bfbc773ac366ad6b8859a5c000377 (diff) | |
download | conntrack-tools-35a22c2721d92c983dc130468ca48aaae46be299.tar.gz conntrack-tools-35a22c2721d92c983dc130468ca48aaae46be299.zip |
conntrack: do_parse_parameter show warning to stderr (not to stdout)
This patch fixes a wrong warning display to stdout instead of stderr.
Make the warning message homogeneous to others.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/conntrack.c')
-rw-r--r-- | src/conntrack.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/conntrack.c b/src/conntrack.c index 26e7408..999df87 100644 --- a/src/conntrack.c +++ b/src/conntrack.c @@ -379,12 +379,14 @@ do_parse_parameter(const char *str, size_t str_length, unsigned int *value, struct parse_parameter *p = &parse_array[parse_type]; if (strncasecmp(str, "SRC_NAT", str_length) == 0) { - printf("skipping SRC_NAT, use --src-nat instead\n"); + fprintf(stderr, "WARNING: ignoring SRC_NAT, " + "use --src-nat instead\n"); return 1; } if (strncasecmp(str, "DST_NAT", str_length) == 0) { - printf("skipping DST_NAT, use --dst-nat instead\n"); + fprintf(stderr, "WARNING: ignoring DST_NAT, " + "use --dst-nat instead\n"); return 1; } |