sms_info("failed to open \"%s\"", filename);
return rc;
}
- sms_info("read FW %s, size=%d", filename, fw->size);
+ sms_info("read FW %s, size=%zd", filename, fw->size);
fw_buffer = kmalloc(ALIGN(fw->size, SMS_ALLOC_ALIGNMENT),
GFP_KERNEL | GFP_DMA);
if (fw_buffer) {
rc = usb_bulk_msg(udev, usb_sndbulkpipe(udev, 2),
fw_buffer, fw->size, &dummy, 1000);
- sms_info("sent %d(%d) bytes, rc %d", fw->size, dummy, rc);
+ sms_info("sent %zd(%d) bytes, rc %d", fw->size, dummy, rc);
kfree(fw_buffer);
} else {
sms_err("failed to allocate firmware buffer");
rc = -ENOMEM;
}
- sms_info("read FW %s, size=%d", smsusb1_fw_lkup[id], fw->size);
+ sms_info("read FW %s, size=%zd", smsusb1_fw_lkup[id], fw->size);
release_firmware(fw);