]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - totger.c
Append \n at the end of every debuga
[thirdparty/sarg.git] / totger.c
index 4cfb1c5a144d5579809dc1607abb85c5ba875cd3..73a04539e94e88e66a7777c57d7583a863216d18 100644 (file)
--- a/totger.c
+++ b/totger.c
@@ -43,12 +43,12 @@ int totalger(const char *dirname, int debug, const char *outdir)
    strcat(wger,"/sarg-general");
 
    if((fp_in=fopen(wger,"r"))==NULL) {
-      fprintf(stderr, "SARG: (totger) %s: %s\n",_("Cannot open file"),wger);
+      debuga(_("(totger) Cannot open file: %s\n"),wger);
       exit(1);
    }
 
    if (longline_prepare(&line)<0) {
-      debuga(_("Not enough memory to read the temporary file %s"),wger);
+      debuga(_("Not enough memory to read the temporary file %s\n"),wger);
       exit(1);
    }
 
@@ -66,7 +66,7 @@ int totalger(const char *dirname, int debug, const char *outdir)
    longline_free(&line);
 
    if((fp_ou=fopen(wger,"a"))==NULL) {
-     fprintf(stderr, "SARG: (totger) %s: %s\n",_("Cannot open file"),wger);
+     debuga(_("(totger) Cannot open file: %s\n"),wger);
      exit(1);
    }