]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - indexonly.c
Change a message string.
[thirdparty/sarg.git] / indexonly.c
index 52f459b3d9dddfb8869d4f71f26e10e2afbfadaa..b6d44bb00915f0f977b5b202f90110ff247be5b7 100644 (file)
@@ -35,7 +35,7 @@ void index_only(const char *dirname,int debug)
        char remove[MAXLEN];
 
        if ((dirp = opendir(dirname)) == NULL) {
-               debuga(_("Cannot open directory \"%s\": %s\n"),dirname,strerror(errno));
+               debuga(__FILE__,__LINE__,_("Cannot open directory \"%s\": %s\n"),dirname,strerror(errno));
                exit(EXIT_FAILURE);
        }
        while ( (direntp = readdir( dirp )) != NULL ){
@@ -43,11 +43,11 @@ void index_only(const char *dirname,int debug)
                        continue;
 
                if (snprintf(remove,sizeof(remove),"%s/%s",dirname,direntp->d_name)>=sizeof(remove)) {
-                       debuga(_("Name of the file to remove is too long. File name is \"%s/%s\"\n"),dirname,direntp->d_name);
+                       debuga(__FILE__,__LINE__,_("Name of the file to remove is too long. File name is \"%s/%s\"\n"),dirname,direntp->d_name);
                        continue;
                }
                if (unlink(remove) == -1) {
-                       debuga(_("Cannot delete \"%s\": %s\n"),remove,strerror(errno));
+                       debuga(__FILE__,__LINE__,_("Cannot delete \"%s\": %s\n"),remove,strerror(errno));
                }
        }