Mercurial > geeqie.yaz
diff src/view_file_list.c @ 495:c7a2471e5c4e
Introduce macros to display debug messages.
if (debug) printf(...) is now replaced by variadic macros:
DEBUG_1()
And for higher debugging levels:
DEBUG_2()
DEBUG_3()
DEBUG_4()
author | zas_ |
---|---|
date | Wed, 23 Apr 2008 20:47:19 +0000 |
parents | 5212d4fed37f |
children | a33badd85f16 |
line wrap: on
line diff
--- a/src/view_file_list.c Wed Apr 23 13:46:18 2008 +0000 +++ b/src/view_file_list.c Wed Apr 23 20:47:19 2008 +0000 @@ -226,7 +226,7 @@ uri_text = uri_text_from_filelist(list, &total, (info == TARGET_TEXT_PLAIN)); filelist_free(list); - if (debug) printf(uri_text); + DEBUG_1(uri_text); gtk_selection_data_set(selection_data, selection_data->target, 8, (guchar *)uri_text, total); @@ -1236,7 +1236,7 @@ if (!thumb_loader_start(vfl->thumbs_loader, fd->path)) { /* set icon to unknown, continue */ - if (debug) printf("thumb loader start failed %s\n", vfl->thumbs_loader->path); + DEBUG_1("thumb loader start failed %s\n", vfl->thumbs_loader->path); vflist_thumb_do(vfl, vfl->thumbs_loader, fd); return TRUE; @@ -2236,7 +2236,7 @@ if (ignore_list) { new_row = vflist_maint_find_closest(vfl, row, n, ignore_list); - if (debug) printf("row = %d, closest is %d\n", row, new_row); + DEBUG_1("row = %d, closest is %d\n", row, new_row); } else {