if (ret < 0)
return ret;
rcv_cnt += ret_rcv;
- debug("%d: RCV data count: %u cnt: %d\n", usb_pkt_cnt,
+ debug("%d: RCV data count: %zu cnt: %d\n", usb_pkt_cnt,
rcv_cnt, *cnt);
if ((rcv_cnt % THOR_STORE_UNIT_SIZE) == 0) {
* on the medium (they are smaller than THOR_STORE_UNIT_SIZE)
*/
*left = left_to_rcv + buf - transfer_buffer;
- debug("%s: left: %u left_to_rcv: %u buf: 0x%p\n", __func__,
+ debug("%s: left: %zu left_to_rcv: %zu buf: 0x%p\n", __func__,
*left, left_to_rcv, buf);
if (left_to_rcv) {
send_data_rsp(0, ++usb_pkt_cnt);
}
- debug("%s: %u total: %llu cnt: %d\n", __func__, rcv_cnt, total, *cnt);
+ debug("%s: %zu total: %llu cnt: %d\n", __func__, rcv_cnt, total, *cnt);
return 0;
}
total_file_size = thor_file_size;
downloaded_file_size = 0;
#endif
- debug("INIT: total %u bytes\n", (size_t)rqt->int_data[0]);
+ debug("INIT: total %zu bytes\n", (size_t)rqt->int_data[0]);
break;
case RQT_DL_FILE_INFO:
file_type = rqt->int_data[0];
memcpy(f_name, rqt->str_data[0], F_NAME_BUF_SIZE);
f_name[F_NAME_BUF_SIZE] = '\0';
- debug("INFO: name(%s, %d), size(%llu), type(%d)\n",
+ debug("INFO: name(%s, %d), size(%zu), type(%d)\n",
f_name, 0, thor_file_size, file_type);
rsp->int_data[0] = THOR_PACKET_SIZE;