Patch from wayned so that add_exclude_list produces clearer debugging
authorMartin Pool <mbp@samba.org>
Tue, 5 Feb 2002 00:25:52 +0000 (00:25 +0000)
committerMartin Pool <mbp@samba.org>
Tue, 5 Feb 2002 00:25:52 +0000 (00:25 +0000)
output with -vvv.

exclude.c

index a9d32a3..3fb3ce8 100644 (file)
--- a/exclude.c
+++ b/exclude.c
@@ -201,9 +201,11 @@ void add_exclude_list(const char *pattern, struct exclude_struct ***list, int in
        if (!*list || !((*list)[len] = make_exclude(pattern, include)))
                out_of_memory("add_exclude");
        
-       if (verbose > 2)
-               rprintf(FINFO,"add_exclude(%s)\n",pattern);
-       
+       if (verbose > 2) {
+               rprintf(FINFO,"add_exclude(%s,%s)\n",pattern,
+                             include ? "include" : "exclude");
+       }
+
        (*list)[len+1] = NULL;
 }