From 2fc7215d1416ddc9104a47a266f5125d3193307c Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sun, 4 May 2014 21:59:14 +0200 Subject: make output to /dev/console a compile time option --- udev/ykfde.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'udev') 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()) { -- cgit v1.2.3-54-g00ecf