Skip to content

Commit

Permalink
collection_load(): increase verbosity in debug mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed Apr 14, 2008
1 parent d0738ee commit 598acd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/collect-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ static gint collection_load_private(CollectionData *cd, const gchar *path, Colle
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++;
Expand All @@ -152,14 +153,16 @@ static gint collection_load_private(CollectionData *cd, const gchar *path, Colle
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;
}
}
}
}

if (debug) printf("collection files: total = %d fail = %d\n", total, fail);

fclose(f);
if (only_geometry) return FALSE;

Expand Down

0 comments on commit 598acd2

Please sign in to comment.