diff options
author | Josh Gao <jmgao@google.com> | 2019-07-08 14:14:28 -0700 |
---|---|---|
committer | Nathan Hjelm <hjelmn@google.com> | 2019-08-09 09:18:03 -0700 |
commit | 4b8ea1025e03cec0c52267e4af7ef00b2eb94947 (patch) | |
tree | dbdb239604951ed5a2949e14646a76a7e63e8a43 | |
parent | 395e5a8a6f221000b65f41ecc0b502908efc9ea7 (diff) | |
download | libusb-4b8ea1025e03cec0c52267e4af7ef00b2eb94947.tar.gz |
windows_winusb: fix size_t format strings.
Use %zu to print size_t for 64-bit compatibility.
Signed-off-by: Nathan Hjelm <hjelmn@google.com>
-rw-r--r-- | libusb/os/windows_winusb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libusb/os/windows_winusb.c b/libusb/os/windows_winusb.c index d500a6d..51eca35 100644 --- a/libusb/os/windows_winusb.c +++ b/libusb/os/windows_winusb.c @@ -3358,7 +3358,7 @@ static int _hid_get_report(struct hid_device_priv *dev, HANDLE hid_handle, int i usbi_dbg("program assertion failed: hid_buffer is not NULL"); if ((*size == 0) || (*size > MAX_HID_REPORT_SIZE)) { - usbi_dbg("invalid size (%u)", *size); + usbi_dbg("invalid size (%zu)", *size); return LIBUSB_ERROR_INVALID_PARAM; } @@ -3437,7 +3437,7 @@ static int _hid_set_report(struct hid_device_priv *dev, HANDLE hid_handle, int i usbi_dbg("program assertion failed: hid_buffer is not NULL"); if ((*size == 0) || (*size > max_report_size)) { - usbi_dbg("invalid size (%u)", *size); + usbi_dbg("invalid size (%zu)", *size); return LIBUSB_ERROR_INVALID_PARAM; } |