Skip to content

Commit

Permalink
Windows: Display error code in default case of windows_transfer_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
pbatard committed Jan 28, 2013
1 parent 5bdea90 commit 1d8e127
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libusb/os/windows_usb.c
Expand Up @@ -2056,7 +2056,7 @@ static void windows_transfer_callback(struct usbi_transfer *itransfer, uint32_t
}
break;
default:
usbi_err(ITRANSFER_CTX(itransfer), "detected I/O error: %s", windows_error_str(0));
usbi_err(ITRANSFER_CTX(itransfer), "detected I/O error %d: %s", io_result, windows_error_str(0));
status = LIBUSB_TRANSFER_ERROR;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion libusb/version_nano.h
@@ -1 +1 @@
#define LIBUSB_NANO 10597
#define LIBUSB_NANO 10598

0 comments on commit 1d8e127

Please sign in to comment.