summaryrefslogtreecommitdiff
path: root/src/read_config_lex.l
diff options
context:
space:
mode:
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
commit9884badf87d34f230aa0f8d80ab4860aafe589d5 (patch)
tree486966b7985cb77f0a97262ea1bb37c9afcdae5b /src/read_config_lex.l
parentfb17dccd91ba9448c2adaca2dcf0f9d665e1e8a4 (diff)
downloadconntrack-tools-9884badf87d34f230aa0f8d80ab4860aafe589d5.tar.gz
conntrack-tools-9884badf87d34f230aa0f8d80ab4860aafe589d5.zip
show error and warning messages to stderr
Diffstat (limited to 'src/read_config_lex.l')
-rw-r--r--src/read_config_lex.l12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/read_config_lex.l b/src/read_config_lex.l
index 81ae64f..847ec74 100644
--- a/src/read_config_lex.l
+++ b/src/read_config_lex.l
@@ -110,14 +110,14 @@ ftfw [F|f][T|t][F|f][W|w]
{ip6} { yylval.string = strdup(yytext); return T_IP; }
{path} { yylval.string = strdup(yytext); return T_PATH_VAL; }
{alarm} { return T_ALARM; }
-{persistent} { printf("\nWARNING: Now `persistent' mode is called "
- "`alarm'. Please, update "
- "your conntrackd.conf file.\n");
+{persistent} { fprintf(stderr, "\nWARNING: Now `persistent' mode "
+ "is called `alarm'. Please, update "
+ "your conntrackd.conf file.\n");
return T_ALARM; }
{ftfw} { return T_FTFW; }
-{nack} { printf("\nWARNING: Now `nack' mode is called "
- "`ftfw'. Please, update "
- "your conntrackd.conf file.\n");
+{nack} { fprintf(stderr, "\nWARNING: Now `nack' mode "
+ "is called `ftfw'. Please, update "
+ "your conntrackd.conf file.\n");
return T_FTFW; }
{string} { yylval.string = strdup(yytext); return T_STRING; }