Print each file or directory excluded
[wimlib] / src / add_image.c
index d6175c2..0e55a98 100644 (file)
@@ -286,7 +286,7 @@ unix_build_dentry_tree_recursive(struct wim_dentry **root_ret,
                        ret = WIMLIB_ERR_INVALID_CAPTURE_CONFIG;
                        goto out;
                }
-               if ((add_image_flags & WIMLIB_ADD_IMAGE_FLAG_VERBOSE)
+               if ((add_image_flags & WIMLIB_ADD_IMAGE_FLAG_EXCLUDE_VERBOSE)
                    && progress_func)
                {
                        union wimlib_progress_info info;
@@ -1042,6 +1042,9 @@ wimlib_add_image_multisource(WIMStruct *w,
        }
 #endif
 
+       if (add_image_flags & WIMLIB_ADD_IMAGE_FLAG_VERBOSE)
+               add_image_flags |= WIMLIB_ADD_IMAGE_FLAG_EXCLUDE_VERBOSE;
+
        if (!name || !*name) {
                ERROR("Must specify a non-empty string for the image name");
                return WIMLIB_ERR_INVALID_PARAM;