Mercurial > geeqie
diff src/layout.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 | 3809ffa3567b |
| children | 1bac19d5a663 |
line wrap: on
line diff
--- a/src/layout.c Wed Apr 23 13:46:18 2008 +0000 +++ b/src/layout.c Wed Apr 23 20:47:19 2008 +0000 @@ -1032,7 +1032,7 @@ { if (!layout_valid(&lw)) return; - if (debug) printf("layout refresh\n"); + DEBUG_1("layout refresh\n"); layout_refresh_lists(lw); @@ -1053,7 +1053,7 @@ if (new_time > 0 && new_time > lw->last_time) { - if (debug) printf("layout path time changed, refreshing...\n"); + DEBUG_1("layout path time changed, refreshing...\n"); layout_refresh_by_time(lw); } }
