aboutsummaryrefslogtreecommitdiffstats
path: root/udev
diff options
context:
space:
mode:
Diffstat (limited to 'udev')
-rw-r--r--udev/ykfde.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/udev/ykfde.c b/udev/ykfde.c
index c97c9bd..0f5bd17 100644
--- a/udev/ykfde.c
+++ b/udev/ykfde.c
@@ -122,8 +122,10 @@ int main(int argc, char **argv) {
int fd_inotify, watch, length, i = 0;
char buffer[EVENT_BUF_LEN];
+#if DEBUG
/* reopening stderr to /dev/console may help debugging... */
- /* freopen("/dev/console", "w", stderr); */
+ freopen("/dev/console", "w", stderr);
+#endif
/* init and open first Yubikey */
if (!yk_init()) {