2
0
forked from Ivasoft/DSView

The print format for type uint64_t

This commit is contained in:
dreamsourcelabTAI
2023-06-29 16:47:00 +08:00
parent c8d226bd04
commit dc70371195
12 changed files with 50 additions and 46 deletions

View File

@@ -212,7 +212,7 @@ static int receive(const struct sr_output *o, const struct sr_datafeed_packet *p
memcpy(ctx->prevsample, sample, logic->unitsize);
/* The first column is a counter (needed for gnuplot). */
g_string_append_printf(*out, "%lu\t", (u64_t)ctx->samplecount-1);
g_string_append_printf(*out, "%llu\t", (u64_t)ctx->samplecount-1);
/* The next columns are the values of all channels. */
for (p = 0; p < ctx->num_enabled_channels; p++) {