]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/baylibre-acme/protocol.c
Fix log varargs bugs indicated by -Wformat
[libsigrok.git] / src / hardware / baylibre-acme / protocol.c
index a50c221993bd31852a57bd5ddac404c14fcea41e..cba1f7c0edb7f2caee2f70649f88fbf79f1b164d 100644 (file)
@@ -507,7 +507,7 @@ static float read_sample(struct sr_channel *ch)
 
        len = read(fd, buf, sizeof(buf));
        if (len < 0) {
-               sr_err("Error reading from channel %s (hwmon: %s): %s",
+               sr_err("Error reading from channel %s (hwmon: %d): %s",
                        ch->name, chp->probe->hwmon_num, g_strerror(errno));
                ch->enabled = FALSE;
                return -1.0;