]> sigrok.org Git - libsigrok.git/commitdiff
Fix two more format warnings uncovered by MinGW build
authorDaniel Elstner <redacted>
Sun, 13 Sep 2015 13:39:04 +0000 (15:39 +0200)
committerDaniel Elstner <redacted>
Sun, 13 Sep 2015 13:39:04 +0000 (15:39 +0200)
src/hardware/brymen-bm86x/protocol.c
src/hardware/rigol-ds/protocol.c

index 74101518ce25fe6401a2571adc6b44a4ac17b336..4538e3c4d5c84bfc964075ce5b8c9944cc5b79f3 100644 (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;
        }
 
index 06dc1a3e3a0c73f7ad12f93b2124de0620d03738..4647966c21dfa8c2843241107d9f70ec813eac34 100644 (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) {