diff options
| author | Simeon Simeonov | 2020-10-06 14:33:05 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2020-10-06 14:33:05 +0200 |
| commit | 12a06184e733554bafc76e643b49067fcd758fc0 (patch) | |
| tree | 03c2c2c4d00c8b07c250e7bfee97d0e64cd064f0 /i3lock.h | |
| parent | a0a3b6e9b55036e8b7095b71151083a069943c33 (diff) | |
Merge the upstream changes from i3lock
Diffstat (limited to 'i3lock.h')
| -rw-r--r-- | i3lock.h | 9 |
1 files changed, 5 insertions, 4 deletions
| @@ -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 |
