summaryrefslogtreecommitdiff
path: root/i3lock.h
diff options
context:
space:
mode:
authorSimeon Simeonov2020-10-06 14:33:05 +0200
committerSimeon Simeonov2020-10-06 14:33:05 +0200
commit12a06184e733554bafc76e643b49067fcd758fc0 (patch)
tree03c2c2c4d00c8b07c250e7bfee97d0e64cd064f0 /i3lock.h
parenta0a3b6e9b55036e8b7095b71151083a069943c33 (diff)
Merge the upstream changes from i3lock
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