Skip to content

Commit

Permalink
netbsd: Add error number to debug output
Browse files Browse the repository at this point in the history
Same as for OpenBSD.

References #1295

Signed-off-by: Tormod Volden <[email protected]>
  • Loading branch information
tormodvolden committed Jul 7, 2023
1 parent cfc6694 commit 6bf2db6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libusb/os/netbsd_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion libusb/version_nano.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define LIBUSB_NANO 11806
#define LIBUSB_NANO 11807

0 comments on commit 6bf2db6

Please sign in to comment.