]> sigrok.org Git - libsigrok.git/blobdiff - src/dmm/fs9922.c
Fix log varargs bugs indicated by -Wformat
[libsigrok.git] / src / dmm / fs9922.c
index caaa51c708d46b418245ff62a286afe292f3d675..d2f6c6bfbcf7d7f7b83ca4062462802f121f4f82 100644 (file)
@@ -26,7 +26,7 @@
 #include <ctype.h>
 #include <math.h>
 #include <glib.h>
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
 #include "libsigrok-internal.h"
 
 #define LOG_PREFIX "fs9922"
@@ -112,7 +112,9 @@ static int parse_value(const uint8_t *buf, float *result)
        } else if (!isdigit(buf[1]) || !isdigit(buf[2]) ||
                   !isdigit(buf[3]) || !isdigit(buf[4])) {
                sr_dbg("Value contained invalid digits: %02x %02x %02x %02x ("
-                      "%c %c %c %c).", buf[1], buf[2], buf[3], buf[4]);
+                       "%c %c %c %c).",
+                       buf[1], buf[2], buf[3], buf[4],
+                       buf[1], buf[2], buf[3], buf[4]);
                return SR_ERR;
        }
        intval = 0;