]> sigrok.org Git - libsigrok.git/blobdiff - src/dmm/vc870.c
Fix log varargs bugs indicated by -Wformat
[libsigrok.git] / src / dmm / vc870.c
index bf02e8e99c5424d5aec6329097b91683a75b64b6..c50e24d7bed56a5179e2a55a72067b2df0b21028 100644 (file)
@@ -22,7 +22,7 @@
 #include <ctype.h>
 #include <math.h>
 #include <glib.h>
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
 #include "libsigrok-internal.h"
 
 #define LOG_PREFIX "vc870"
@@ -70,8 +70,9 @@ static int parse_value(const uint8_t *buf, struct vc870_info *info,
        } else if (!isdigit(buf[3]) || !isdigit(buf[4]) ||
                   !isdigit(buf[5]) || !isdigit(buf[6]) || !isdigit(buf[7])) {
                sr_dbg("Invalid digits: %02x %02x %02x %02x %02X "
-                      "(%c %c %c %c %c).", buf[3], buf[4], buf[5], buf[6],
-                      buf[7]);
+                       "(%c %c %c %c %c).",
+                       buf[3], buf[4], buf[5], buf[6], buf[7],
+                       buf[3], buf[4], buf[5], buf[6], buf[7]);
                return SR_ERR;
        }
 
@@ -379,6 +380,8 @@ static void handle_flags(struct sr_datafeed_analog *analog,
 
 static gboolean flags_valid(const struct vc870_info *info)
 {
+       (void)info;
+
        /* TODO: Implement. */
        return TRUE;
 }