diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2007-12-24 13:51:12 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2007-12-24 13:51:12 +0000 |
commit | 9884badf87d34f230aa0f8d80ab4860aafe589d5 (patch) | |
tree | 486966b7985cb77f0a97262ea1bb37c9afcdae5b /src/conntrack.c | |
parent | fb17dccd91ba9448c2adaca2dcf0f9d665e1e8a4 (diff) | |
download | conntrack-tools-9884badf87d34f230aa0f8d80ab4860aafe589d5.tar.gz conntrack-tools-9884badf87d34f230aa0f8d80ab4860aafe589d5.zip |
show error and warning messages to stderr
Diffstat (limited to 'src/conntrack.c')
-rw-r--r-- | src/conntrack.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/conntrack.c b/src/conntrack.c index 65dc4a7..fa6ae0a 100644 --- a/src/conntrack.c +++ b/src/conntrack.c @@ -929,8 +929,8 @@ int main(int argc, char *argv[]) l3protonum); break; case 'a': - printf("warning: ignoring --nat-range, " - "use --src-nat or --dst-nat instead.\n"); + fprintf(stderr, "warning: ignoring --nat-range, " + "use --src-nat or --dst-nat instead.\n"); break; case 'n': options |= CT_OPT_SRC_NAT; @@ -958,7 +958,8 @@ int main(int argc, char *argv[]) nfct_set_attr_u32(obj, ATTR_SECMARK, atol(optarg)); break; case 'i': - printf("warning: ignoring --id. deprecated option.\n"); + fprintf(stderr, + "warning: ignoring --id. deprecated option.\n"); break; case 'f': options |= CT_OPT_FAMILY; |