From 6bf2db6feaf3b611c9adedb6c4962a07f5cb07ae Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Thu, 6 Jul 2023 14:45:04 +0200 Subject: [PATCH] netbsd: Add error number to debug output Same as for OpenBSD. References #1295 Signed-off-by: Tormod Volden --- libusb/os/netbsd_usb.c | 2 +- libusb/version_nano.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libusb/os/netbsd_usb.c b/libusb/os/netbsd_usb.c index 967cf8b06..ebafdf0cb 100644 --- a/libusb/os/netbsd_usb.c +++ b/libusb/os/netbsd_usb.c @@ -458,7 +458,7 @@ _errno_to_libusb(int err) return LIBUSB_ERROR_TIMEOUT; } - usbi_dbg(NULL, "error: %s", strerror(err)); + usbi_dbg(NULL, "error: %s (%d)", strerror(err), err); return LIBUSB_ERROR_OTHER; } diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 622532eba..f4f74b4e5 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11806 +#define LIBUSB_NANO 11807