aboutsummaryrefslogtreecommitdiffstats
path: root/udev/ykfde.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-05-04 21:59:14 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-05-04 21:59:14 +0200
commit2fc7215d1416ddc9104a47a266f5125d3193307c (patch)
tree76a192642af7919b0269544a924ed1550153e772 /udev/ykfde.c
parent2471c5cf4981286b3d8b8b6ae52a6c962a3a0df6 (diff)
downloadmkinitcpio-ykfde-2fc7215d1416ddc9104a47a266f5125d3193307c.tar.gz
mkinitcpio-ykfde-2fc7215d1416ddc9104a47a266f5125d3193307c.tar.zst
make output to /dev/console a compile time option
Diffstat (limited to 'udev/ykfde.c')
-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()) {