Mercurial > geeqie.yaz
diff src/print.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 | 48c8e49b571c |
children | fc9c8a3e1a8b |
line wrap: on
line diff
--- a/src/print.c Wed Apr 23 13:46:18 2008 +0000 +++ b/src/print.c Wed Apr 23 20:47:19 2008 +0000 @@ -932,7 +932,7 @@ while (*end != '\0' && *end != '\n' && *end != ' ' && *end != '\t') end++; *end = '\0'; list = g_list_append(list, g_strdup(ptr)); - if (debug) printf("adding printer: %s\n", ptr); + DEBUG_1("adding printer: %s\n", ptr); } pclose(p);