From 12a06184e733554bafc76e643b49067fcd758fc0 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Tue, 6 Oct 2020 14:33:05 +0200 Subject: Merge the upstream changes from i3lock --- i3lock.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'i3lock.h') diff --git a/i3lock.h b/i3lock.h index 57190e5..6cf7694 100644 --- a/i3lock.h +++ b/i3lock.h @@ -5,10 +5,11 @@ * This is important because xautolock (for example) closes stdout/stderr by * default, so just printing something to stdout will lead to the data ending * up on the X11 socket (!). */ -#define DEBUG(fmt, ...) \ - do { \ - if (debug_mode) \ - printf("[i3lock-debug] " fmt, ##__VA_ARGS__); \ +#define DEBUG(fmt, ...) \ + do { \ + if (debug_mode) { \ + fprintf(stderr, "[i3lock-extended-debug] " fmt, ##__VA_ARGS__); \ + } \ } while (0) #endif -- cgit v1.3