for(x=0;((gwarea->current[x]) && (gwarea->current[x] != stop ));x++) {
if(x>=limit) {
- printf("SARG: getword loop detected after %d bytes.\n",x);
- printf("SARG: Line=\"%s\"\n",gwarea->beginning);
- printf("SARG: Record=\"%s\"\n",gwarea->current);
- printf("SARG: searching for \'x%x\'\n",stop);
- //printf("SARG: Maybe you have a broken record or garbage in your access.log file.\n");
+ debuga(_("getword loop detected after %d bytes.\n"),x);
+ debuga(_("Line=\"%s\"\n"),gwarea->beginning);
+ debuga(_("Record=\"%s\"\n"),gwarea->current);
+ debuga(_("searching for \'x%x\'\n"),stop);
+ //debuga(_("Maybe you have a broken record or garbage in your access.log file.\n"));
word[(limit>0) ? limit-1 : 0]='\0';
#if USE_GETWORD_BACKTRACE
getword_backtrace();
for(x=0;((gwarea->current[x]) && (gwarea->current[x] != stop ));x++) {
if(x>=limit) {
- printf("SARG: getword_multisep loop detected.\n");
- printf("SARG: Line=\"%s\"\n",gwarea->beginning);
- printf("SARG: Record=\"%s\"\n",gwarea->current);
- printf("SARG: searching for \'x%x\'\n",stop);
- //printf("SARG: Maybe you have a broken record or garbage in your access.log file.\n");
+ debuga(_("getword_multisep loop detected.\n"));
+ debuga(_("Line=\"%s\"\n"),gwarea->beginning);
+ debuga(_("Record=\"%s\"\n"),gwarea->current);
+ debuga(_("searching for \'x%x\'\n"),stop);
+ //debuga(_("Maybe you have a broken record or garbage in your access.log file.\n"));
if (limit>0) word[limit-1]='\0';
#if USE_GETWORD_BACKTRACE
getword_backtrace();
for(x=0;(gwarea->current[x] && (gwarea->current[x] != stop ));x++) {
if(x>=limit) {
- printf("SARG: getword_skip loop detected after %d bytes.\n",x);
- printf("SARG: Line=\"%s\"\n",gwarea->beginning);
- printf("SARG: Record=\"%s\"\n",gwarea->current);
- printf("SARG: searching for \'x%x\'\n",stop);
- //printf("SARG: Maybe you have a broken record or garbage in your access.log file.\n");
+ debuga(_("getword_skip loop detected after %d bytes.\n"),x);
+ debuga(_("Line=\"%s\"\n"),gwarea->beginning);
+ debuga(_("Record=\"%s\"\n"),gwarea->current);
+ debuga(_("searching for \'x%x\'\n"),stop);
+ //debuga(_("Maybe you have a broken record or garbage in your access.log file.\n"));
#if USE_GETWORD_BACKTRACE
getword_backtrace();
#endif
*number=(*number * 10) + digit;
}
if(gwarea->current[x] && gwarea->current[x]!=stop) {
- printf("SARG: getword_atoll loop detected after %d bytes.\n",x);
- printf("SARG: Line=\"%s\"\n",gwarea->beginning);
- printf("SARG: Record=\"%s\"\n",gwarea->current);
- printf("SARG: searching for \'x%x\'\n",stop);
- //printf("SARG: Maybe you have a broken record or garbage in your access.log file.\n");
+ debuga(_("getword_atoll loop detected after %d bytes.\n"),x);
+ debuga(_("Line=\"%s\"\n"),gwarea->beginning);
+ debuga(_("Record=\"%s\"\n"),gwarea->current);
+ debuga(_("searching for \'x%x\'\n"),stop);
+ //debuga(_("Maybe you have a broken record or garbage in your access.log file.\n"));
#if USE_GETWORD_BACKTRACE
getword_backtrace();
#endif
*number=(*number * 10) + digit;
}
if(gwarea->current[x] && gwarea->current[x]!=stop) {
- printf("SARG: getword_atoi loop detected after %d bytes.\n",x);
- printf("SARG: Line=\"%s\"\n",gwarea->beginning);
- printf("SARG: Record=\"%s\"\n",gwarea->current);
- printf("SARG: searching for \'x%x\'\n",stop);
- //printf("SARG: Maybe you have a broken record or garbage in your access.log file.\n");
+ debuga(_("getword_atoi loop detected after %d bytes.\n"),x);
+ debuga(_("Line=\"%s\"\n"),gwarea->beginning);
+ debuga(_("Record=\"%s\"\n"),gwarea->current);
+ debuga(_("searching for \'x%x\'\n"),stop);
+ //debuga(_("Maybe you have a broken record or garbage in your access.log file.\n"));
#if USE_GETWORD_BACKTRACE
getword_backtrace();
#endif
for(x=0; x<z; x++)
if (getword_multisep(w,sizeof(w),&gwarea,',')<0) {
- printf("SARG: Maybe you have a broken record or garbage in the names of the months.\n");
+ debuga(_("SARG: Maybe you have a broken record or garbage in the names of the months.\n"));
exit(EXIT_FAILURE);
}
if (getword_multisep(month,month_len,&gwarea,',')<0) {
- printf("SARG: Maybe you have a broken record or garbage in the name of the months.\n");
+ debuga(_("Maybe you have a broken record or garbage in the name of the months.\n"));
exit(EXIT_FAILURE);
}
}