]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - readlog_sarg.c
Display the source of the message displayed on stderr
[thirdparty/sarg.git] / readlog_sarg.c
index 2dc1c6c0347dc4c0aa611293a0f886fcc069cc02..c60ff285d0f1340b3cefddf778f0b44abf2a9988 100644 (file)
@@ -72,7 +72,7 @@ static enum ReadLogReturnCodeEnum Sarg_ReadEntry(char *Line,struct ReadLogStruct
 
        if (strncmp(Line,"*** SARG Log ***",16)==0) {
                if (InvalidFileName) {
-                       debuga(_("The name of the file is invalid for a sarg log\n"));
+                       debuga(__FILE__,__LINE__,_("The name of the file is invalid for a sarg log\n"));
                        exit(EXIT_FAILURE);
                }
                getperiod_merge(&period,&SargPeriod);
@@ -156,7 +156,7 @@ static enum ReadLogReturnCodeEnum Sarg_ReadEntry(char *Line,struct ReadLogStruct
 
        // check the entry time
        if (mktime(&Entry->EntryTime)==-1) {
-               debuga(_("Invalid date or time found in the common log file\n"));
+               debuga(__FILE__,__LINE__,_("Invalid date or time found in the common log file\n"));
                return(RLRC_InternalError);
        }