From: Uwe Hermann Date: Sat, 18 Mar 2017 19:55:20 +0000 (+0100) Subject: output/csv: Fix a compiler warning. X-Git-Tag: libsigrok-0.5.0~70 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8005151b8783b002f5e07aa9e4e077ea6aed1688;p=libsigrok.git output/csv: Fix a compiler warning. 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); ^ --- diff --git a/src/output/csv.c b/src/output/csv.c index c39c29a7..402ab904 100644 --- a/src/output/csv.c +++ b/src/output/csv.c @@ -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++) {