]> sigrok.org Git - libsigrok.git/commitdiff
output/analog: Fix a compiler warning on Mac OS X.
authorUwe Hermann <redacted>
Sun, 18 Feb 2018 20:23:28 +0000 (21:23 +0100)
committerUwe Hermann <redacted>
Sun, 18 Feb 2018 20:36:18 +0000 (21:36 +0100)
Apparently PRIu64 and G_GUINT64_FORMAT differ on some systems for
unknown reasons. Use G_GUINT64_FORMAT to get rid of the warning
for now.

src/output/analog.c

index f5d23e6fc085b896e0a18246bf51e2134041294a..45df4003b8d17bc92d8fb75bb4e04d7ae1d9c8cc 100644 (file)
@@ -113,7 +113,8 @@ static int receive(const struct sr_output *o, const struct sr_datafeed_packet *p
                                g_string_append_printf(*out, "%f",
                                        g_variant_get_double(src->data));
                        } else if (srci->datatype == SR_T_UINT64) {
-                               g_string_append_printf(*out, "%" PRIu64,
+                               g_string_append_printf(*out, "%"
+                                       G_GUINT64_FORMAT,
                                        g_variant_get_uint64(src->data));
                        }
                        g_string_append(*out, "\n");