On 2012.08.23 12:57, sebastiank wrote: > Pcscd does not function as expected, i.e. my app is not able to find > the attached rfid-reader, although pcscd is recognising it and is > logging the card insertion and removal. > > This is happening, when pcscd is started as daemon and > > - LIBUSB_DEBUG = 4 && libusbx was compiled without the > "--enable-debug-log" flag, > - LIBUSB_DEBUG < 4 && libusbx was compiled with the > "--enable-debug-log" flag or > - LIBUSB_DEBUG = 4 && libusbx was compiled with the > "--enable-debug-log" flag.
LIBUSB_DEBUG = 4 and --enable-debug-log aim at producing the same thing, so, though the non detection is surprising, what's not surprising is that you would get the same issue with either LIBUSB_DEBUG = 4 or --enable-debug-log. > If pcscd is running in foreground mode, everything works fine, no > matter which value (1-4) is assigned to LIBUSB_DEBUG and > "--enabled-debug-log" flag was active or not. Could be a problem with output redirection in pcscd then, rather than a libusbx issue. Considering that no other application has complained about not being able to detect devices when playing with logging, and I have see no evidence that using DEBUG will prevent device detection, I don't think this is a pure libusbx issue. But maybe Ludovic has some ideas. > Note: I always compiled libusbx without the "--enabled-debug-log" flag And you should probably keep it that way, as --enable-debug-log is mostly kept for historical reasons and should only really needed if you want to get a few extra debug messages during init. Regards, /Pete ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel