while (*buf && (unsigned char)*buf<=' ') buf++;
if (strlen(buf)>=value_size) {
- debuga(_("The string value of parameter \"%s\" is too long"),param);
+ debuga(_("The string value of parameter \"%s\" is too long\n"),param);
exit(1);
}
strcpy(value,buf);
while (*buf && (unsigned char)*buf<=' ') buf++;
if (*buf != '\"') {
- debuga(_("Missing double quote after parameter \"%s\""),param);
+ debuga(_("Missing double quote after parameter \"%s\"\n"),param);
exit(1);
}
buf++;
value[i]='\0';
if (*buf != '\"') {
- debuga(_("Missing double quote after parameter \"%s\" or value is more than %d bytes long"),param,value_size);
+ debuga(_("Missing double quote after parameter \"%s\" or value is more than %d bytes long\n"),param,value_size);
exit(1);
}
fixnone(value);
for (i=0 ; i<word1_size && *buf && (unsigned char)*buf>' ' ; i++)
word1[i]=*buf++;
if (i>=word1_size) {
- debuga(_("The first word of parameter \"%s\" is more than %d bytes long"),param,word1_size-1);
+ debuga(_("The first word of parameter \"%s\" is more than %d bytes long\n"),param,word1_size-1);
exit(1);
}
if (*buf!=' ') {
- debuga(_("Missing second word for parameter \"%s\""),param);
+ debuga(_("Missing second word for parameter \"%s\"\n"),param);
exit(1);
}
word1[i]=0;
for (i=0 ; i<word2_size && *buf && (unsigned char)*buf>' ' ; i++)
word2[i]=*buf++;
if (i>=word2_size) {
- debuga(_("The second word of parameter \"%s\" is more than %d bytes long"),param,word2_size-1);
+ debuga(_("The second word of parameter \"%s\" is more than %d bytes long\n"),param,word2_size-1);
exit(1);
}
word2[i]=0;
next=0;
if (sscanf(buf,"%d%n",value,&next) != 1 || (unsigned char)buf[next] > ' ') {
- debuga(_("The integer value of parameter \"%s\" is invalid"),param);
+ debuga(_("The integer value of parameter \"%s\" is invalid\n"),param);
exit(1);
}
return(1);
}
for (i=0 ; i<noptions && strcasecmp(buf,options[i].name) ; i++);
if (i>=noptions) {
- debuga(_("SUnknown value \"%s\" for parameter \"%s\""),buf,param);
+ debuga(_("Unknown value \"%s\" for parameter \"%s\"\n"),buf,param);
exit(1);
}
if ((*value & options[i].exclude)!=0) {
- debuga(_("Value \"%s\" conflicts with other selected values for parameter \"%s\""),buf,param);
+ debuga(_("Value \"%s\" conflicts with other selected values for parameter \"%s\"\n"),buf,param);
exit(1);
}
*value|=options[i].value;
if (is_param("date_format",buf)) {
getword_start(&gwarea,buf);
if (getword_multisep(wbuf,sizeof(wbuf),&gwarea,' ')<0) {
- debuga(_("Maybe you have a broken record or garbage in \"date_format\" parameter"));
+ debuga(_("Maybe you have a broken record or garbage in \"date_format\" parameter\n"));
exit(1);
}
strncpy(DateFormat,gwarea.current,1);
if (is_param("hours",buf)) {
if( getnumlist( buf, &hours, 24, 24 ) ) {
- debuga(_("Error: Invalid syntax in hours tag!"));
+ debuga(_("Error: Invalid syntax in hours tag!\n"));
exit( 1 );
}
}
if (is_param("weekdays",buf)) {
if( getnumlist( buf, &weekdays, 7, 7 ) ) {
- debuga(_("Error: Invalid syntax in weekdays tag!"));
+ debuga(_("Error: Invalid syntax in weekdays tag!\n"));
exit( 1 );
}
}
if (is_param("access_log",buf)>0) {
if (AccessLogFromCmdLine==0) {
if (NAccessLog>=MAXLOGS) {
- debuga(_("Too many log files in configuration file"));
+ debuga(_("Too many log files in configuration file\n"));
exit(1);
}
getparam_string("access_log",buf,AccessLog[NAccessLog],MAXLEN);
if(strstr(buf,"byte_cost") != 0) {
getword_start(&gwarea,buf);
if (getword_multisep(wbuf,sizeof(wbuf),&gwarea,' ')<0) {
- debuga(_("The \"byte_cost\" parameter of the configuration file is invalid"));
+ debuga(_("The \"byte_cost\" parameter of the configuration file is invalid\n"));
exit(1);
}
cost=atol(gwarea.current);
if (getword_multisep(wbuf,sizeof(wbuf),&gwarea,' ')<0) {
- debuga(_("The \"byte_cost\" parameter of the configuration file is invalid"));
+ debuga(_("The \"byte_cost\" parameter of the configuration file is invalid\n"));
exit(1);
}
nocost=my_atoll(gwarea.current);
char buf[MAXLEN];
if(debug)
- debuga(_("Loading configuration from: %s"),ConfigFile);
+ debuga(_("Loading configuration from: %s\n"),ConfigFile);
if ((fp_in = fopen(ConfigFile, "r")) == NULL) {
- debuga(_("SARG: (getconf) Cannot open file: %s"),ConfigFile);
+ debuga(_("(getconf) Cannot open file: %s\n"),ConfigFile);
exit(1);
}