# HG changeset patch # User zas_ # Date 1208213846 0 # Node ID c5d5ebcc1e50663f178f885e253261f06aad0fdd # Parent e0295af4f716e75f1f3b669b3d628d3d78b0e052 collection_load(): increase verbosity in debug mode. diff -r e0295af4f716 -r c5d5ebcc1e50 src/collect-io.c --- a/src/collect-io.c Mon Apr 14 22:50:50 2008 +0000 +++ b/src/collect-io.c Mon Apr 14 22:57:26 2008 +0000 @@ -143,6 +143,7 @@ changed |= collect_manager_process_action(entry, &buf); valid = (buf[0] == '/' && collection_add_check(cd, file_data_new_simple(buf), FALSE, TRUE)); + if (debug && !valid) printf("collection invalid file: %s\n", buf); g_free(buf); total++; @@ -152,7 +153,7 @@ if (fail > GQ_COLLECTION_FAIL_MIN && fail * 100 / total > GQ_COLLECTION_FAIL_PERCENT) { - printf("Too many invalid filenames in unoffical collection file, closing: %s\n", path); + printf("%d invalid filenames in unoffical collection file, closing: %s\n", fail, path); success = FALSE; break; } @@ -160,6 +161,8 @@ } } + if (debug) printf("collection files: total = %d fail = %d\n", total, fail); + fclose(f); if (only_geometry) return FALSE;