Fix two more format warnings uncovered by MinGW build

This commit is contained in:
Daniel Elstner 2015-09-13 15:39:04 +02:00
parent 7419638d4c
commit 0c536bcd00
2 changed files with 2 additions and 2 deletions

View File

@ -257,7 +257,7 @@ static int brymen_bm86x_send_command(const struct sr_dev_inst *sdi)
}
if (ret != sizeof(buf)) {
sr_err("Short packet: sent %d/%ld bytes.", ret, sizeof(buf));
sr_err("Short packet: sent %d/%zu bytes.", ret, sizeof(buf));
return SR_ERR;
}

View File

@ -328,7 +328,7 @@ SR_PRIV int rigol_ds_capture_start(const struct sr_dev_inst *sdi)
if (!(devc = sdi->priv))
return SR_ERR;
sr_dbg("Starting data capture for frameset %lu of %lu",
sr_dbg("Starting data capture for frameset %" PRIu64 " of %" PRIu64,
devc->num_frames + 1, devc->limit_frames);
switch (devc->model->series->protocol) {