summaryrefslogtreecommitdiff
path: root/source/l/libusb/libusb.fix.debug.log.level.diff
blob: 59af816eb75c71fe5d4bc4c63e5f805f9aed2732 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- ./libusb/os/linux_usbfs.c.orig	2010-04-22 16:14:46.000000000 -0500
+++ ./libusb/os/linux_usbfs.c	2011-03-24 18:40:38.000000000 -0500
@@ -1055,7 +1055,8 @@
 	hpriv->fd = open(filename, O_RDWR);
 	if (hpriv->fd < 0) {
 		if (errno == EACCES) {
-			fprintf(stderr, "libusb couldn't open USB device %s: "
+                        usbi_err(HANDLE_CTX(handle),
+			        "libusb couldn't open USB device %s: "
 				"Permission denied.\n"
 				"libusb requires write access to USB device nodes.\n",
 				filename);