From 9884badf87d34f230aa0f8d80ab4860aafe589d5 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Mon, 24 Dec 2007 13:51:12 +0000 Subject: show error and warning messages to stderr --- src/read_config_lex.l | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/read_config_lex.l') 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; } -- cgit v1.2.3