Mercurial > geeqie
changeset 172:d18b94f1ca80
debug messages cleanup
author | nadvornik |
---|---|
date | Sun, 20 Jan 2008 19:04:18 +0000 |
parents | 6b4918c2bb0d |
children | 0472275e19f4 |
files | src/filelist.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/filelist.c Wed Jan 16 19:37:54 2008 +0000 +++ b/src/filelist.c Sun Jan 20 19:04:18 2008 +0000 @@ -713,7 +713,7 @@ { FileData *fd; - printf("file_data_new: '%s' %d\n", path_utf8, check_sidecars); + if (debug) printf("file_data_new: '%s' %d\n", path_utf8, check_sidecars); if (!file_data_pool) file_data_pool = g_hash_table_new (g_str_hash, g_str_equal); @@ -722,7 +722,7 @@ if (fd) { file_data_check_changed_files(fd, st); - printf("file_data_pool hit: '%s'\n", fd->path); + if (debug) printf("file_data_pool hit: '%s'\n", fd->path); return file_data_ref(fd); } @@ -875,7 +875,7 @@ { if (fd == NULL) return; g_assert(fd->magick == 0x12345678); - printf("file_data_unref: '%s'\n", fd->path); + if (debug) printf("file_data_unref: '%s'\n", fd->path); fd->ref--; if (fd->ref == 0) { @@ -897,7 +897,7 @@ /* none of parent/children is referenced, we can free everything */ - printf("file_data_unref: '%s', parent '%s'\n", fd->path, parent->path); + if (debug) printf("file_data_unref: deleting '%s', parent '%s'\n", fd->path, parent->path); work = parent->sidecar_files; while (work)