changeset 362:c5d5ebcc1e50

collection_load(): increase verbosity in debug mode.
author zas_
date Mon, 14 Apr 2008 22:57:26 +0000
parents e0295af4f716
children 5b8617c3821c
files src/collect-io.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;