diff options
author | Daniel Drake <dan@reactivated.net> | 2010-06-22 18:45:38 -0500 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-07-29 11:20:54 +0100 |
commit | db223f0879ce811988f5784f0b21b8f0bafb2992 (patch) | |
tree | f101227ad6d00b6f6acaaaa407ae64c0a46e2b32 /libusb/os | |
parent | 65faf2142660f2956079d8c14a474d79118b1e1f (diff) | |
download | libusb-db223f0879ce811988f5784f0b21b8f0bafb2992.tar.gz |
Linux: Fix log message commit
Forgot to test this.
Diffstat (limited to 'libusb/os')
-rw-r--r-- | libusb/os/linux_usbfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libusb/os/linux_usbfs.c b/libusb/os/linux_usbfs.c index e3da552..67d2a87 100644 --- a/libusb/os/linux_usbfs.c +++ b/libusb/os/linux_usbfs.c @@ -1055,9 +1055,10 @@ static int op_open(struct libusb_device_handle *handle) hpriv->fd = open(filename, O_RDWR); if (hpriv->fd < 0) { if (errno == EACCES) { - usbi_err("libusb couldn't open USB device %s: " + usbi_err(HANDLE_CTX(handle), "libusb couldn't open USB device %s: " "Permission denied.", filename); - usbi_err("libusb requires write access to USB device nodes."); + usbi_err(HANDLE_CTX(handle), + "libusb requires write access to USB device nodes."); return LIBUSB_ERROR_ACCESS; } else if (errno == ENOENT) { return LIBUSB_ERROR_NO_DEVICE; |