Make dprintfs 64-bit clean

This commit is contained in:
Tau
2018-12-17 17:34:15 -05:00
parent 755be05603
commit ee011a74d4
9 changed files with 43 additions and 27 deletions

View File

@ -41,7 +41,7 @@ static HRESULT sg_req_validate(const void *ptr, size_t nbytes)
if (req->hdr.frame_len != nbytes) {
dprintf("SG Cmd: Frame length mismatch: got %i exp %i\n",
req->hdr.frame_len,
nbytes);
(int) nbytes);
return E_FAIL;
}
@ -51,7 +51,7 @@ static HRESULT sg_req_validate(const void *ptr, size_t nbytes)
if (req->payload_len != payload_len) {
dprintf("SG Cmd: Payload length mismatch: got %i exp %i\n",
req->payload_len,
payload_len);
(int) payload_len);
return E_FAIL;
}