From: Daniel Elstner Date: Sun, 13 Sep 2015 13:39:04 +0000 (+0200) Subject: Fix two more format warnings uncovered by MinGW build X-Git-Tag: libsigrok-0.4.0~304 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0c536bcd004aa4b4f0ba9673b4d460551e8b16c1;p=libsigrok.git Fix two more format warnings uncovered by MinGW build --- diff --git a/src/hardware/brymen-bm86x/protocol.c b/src/hardware/brymen-bm86x/protocol.c index 74101518..4538e3c4 100644 --- a/src/hardware/brymen-bm86x/protocol.c +++ b/src/hardware/brymen-bm86x/protocol.c @@ -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; } diff --git a/src/hardware/rigol-ds/protocol.c b/src/hardware/rigol-ds/protocol.c index 06dc1a3e..4647966c 100644 --- a/src/hardware/rigol-ds/protocol.c +++ b/src/hardware/rigol-ds/protocol.c @@ -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) {