From: Frédéric Marchal Date: Mon, 15 Feb 2010 13:44:26 +0000 (+0000) Subject: Fix wrong detection of smartfilter X-Git-Tag: v2.3-pre2~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e34a7c982d3f84438c4302f52ee9abf9dd73e5f3;p=thirdparty%2Fsarg.git Fix wrong detection of smartfilter --- diff --git a/report.c b/report.c index 35e9f00..782e821 100644 --- a/report.c +++ b/report.c @@ -160,12 +160,12 @@ void gerarel(void) exit(1); } if(strncmp(acccode,"TCP_DENIED/407",14) == 0) continue; - if (getword_atoll(&accelap,&gwarea,'\t')<0 || getword_skip(20000,&gwarea,'\t')<0) { - printf("SARG: Maybe you have a broken elapsed time in your %s file (%d).\n",tmp3,__LINE__); + if (getword_atoll(&accelap,&gwarea,'\t')<0) { + debuga(_("Maybe you have a broken elapsed time in your %s file (%d)"),tmp3,__LINE__); exit(1); } - if (getword(accsmart,sizeof(accsmart),&gwarea,'"')<0) { - printf("SARG: Maybe you have a broken smart info in your %s file (%d).\n",tmp3,__LINE__); + if (getword_skip(20000,&gwarea,'"')<0 || getword(accsmart,sizeof(accsmart),&gwarea,'"')<0) { + debuga(_("Maybe you have a broken smart info in your %s file (%d)"),tmp3,__LINE__); exit(1); }