summaryrefslogtreecommitdiff
path: root/i3lock.h
diff options
context:
space:
mode:
Diffstat (limited to 'i3lock.h')
-rw-r--r--i3lock.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/i3lock.h b/i3lock.h
index 57190e5..6cf7694 100644
--- a/i3lock.h
+++ b/i3lock.h
@@ -5,10 +5,11 @@
5 * This is important because xautolock (for example) closes stdout/stderr by 5 * This is important because xautolock (for example) closes stdout/stderr by
6 * default, so just printing something to stdout will lead to the data ending 6 * default, so just printing something to stdout will lead to the data ending
7 * up on the X11 socket (!). */ 7 * up on the X11 socket (!). */
8#define DEBUG(fmt, ...) \ 8#define DEBUG(fmt, ...) \
9 do { \ 9 do { \
10 if (debug_mode) \ 10 if (debug_mode) { \
11 printf("[i3lock-debug] " fmt, ##__VA_ARGS__); \ 11 fprintf(stderr, "[i3lock-extended-debug] " fmt, ##__VA_ARGS__); \
12 } \
12 } while (0) 13 } while (0)
13 14
14#endif 15#endif