mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2025-02-21 04:48:42 +01:00
Fix warnings on format strings
This commit is contained in:
parent
7d485e7c7e
commit
4c746df6a8
@ -39,8 +39,8 @@ static bool p4io_transfer(
|
||||
}
|
||||
|
||||
if(resp_payload_len && transferred_response_payload != resp_payload_len) {
|
||||
log_warning("Asked for %zu bytes got %zu", resp_payload_len,
|
||||
transferred_response_payload);
|
||||
log_warning("Asked for %u bytes got %u", (unsigned)resp_payload_len,
|
||||
(unsigned)transferred_response_payload);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -137,7 +137,7 @@ bool p4io_usb_transfer(
|
||||
|
||||
// must be 65 bytes or requests can stall - only 64 will ever be returned
|
||||
if(!ReadFile(bulk_handle, &cmd_buf, 65, &bytes_xferred, 0)) {
|
||||
log_warning("ReadFile (%u) failed", bytes_requested);
|
||||
log_warning("ReadFile (%u) failed", (unsigned)bytes_requested);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user