]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/baylibre-acme/gpio.c
Fix log varargs bugs indicated by -Wformat
[libsigrok.git] / src / hardware / baylibre-acme / gpio.c
index c2e6da9d7fce8a715228b639bda3ac3714026f4e..93daff7b2636425bf1bd8418609c72e8ba19f110 100644 (file)
@@ -125,7 +125,7 @@ SR_PRIV int sr_gpio_get_value(int gpio)
        status = fscanf(fd, "%d", &ret);
        fclose(fd);
        if (status != 1) {
-               sr_err("Error reading from %s: %s", path, g_strerror(errno));
+               sr_err("Error reading from %s: %s", path->str, g_strerror(errno));
                g_string_free(path, TRUE);
                return -1;
        }