]> sigrok.org Git - libsigrok.git/commitdiff
output/csv: Fix a compiler warning.
authorUwe Hermann <redacted>
Sat, 18 Mar 2017 19:55:20 +0000 (20:55 +0100)
committerUwe Hermann <redacted>
Wed, 10 May 2017 13:36:33 +0000 (15:36 +0200)
src/output/csv.c: In function 'dump_saved_values':
src/output/csv.c:461:6: warning: format '%lu' expects argument of
type 'long unsigned int', but argument 3 has type 'uint64_t' [-Wformat=]
      ctx->sample_time, ctx->value);
      ^

src/output/csv.c

index c39c29a7378fe9cd935fbaff0f35f2255f548f2a..402ab904454c69cc0669d1152ad1810a6ad4dc8f 100644 (file)
@@ -457,7 +457,7 @@ static void dump_saved_values(struct context *ctx, GString **out)
                        }
 
                        if (ctx->time)
-                               g_string_append_printf(*out, "%lu%s",
+                               g_string_append_printf(*out, "%" PRIu64 "%s",
                                        ctx->sample_time, ctx->value);
 
                        for (j = 0; j < num_channels; j++) {