From 496d0aa81fa0ad34307632340871bf0bf8c7516d Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sat, 28 Jun 2008 11:48:23 +0300 Subject: [PATCH] Do not print repeated debug information --- src/filters.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/filters.c b/src/filters.c index b986f023..97be9419 100644 --- a/src/filters.c +++ b/src/filters.c @@ -144,6 +144,10 @@ do_filter_should_skip(struct TarInfo *ti) } if (remove) { + debug(dbg_eachfile, + "tarobject seeing if '%s' needs to be reincluded", + &ti->Name[1]); + for (f = filters; f != NULL; f = f->next) { char *pattern; @@ -151,9 +155,6 @@ do_filter_should_skip(struct TarInfo *ti) strcpy(pattern, &ti->Name[1]); strcat(pattern, "*"); - debug(dbg_eachfile, - "tarobject seeing if '%s' needs to be reincluded", - &ti->Name[1]); if ((f->positive == 1) && (ti->Type == Directory) && (fnmatch(pattern, f->filterstring, 0) == 0)) { -- 2.39.5