X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=output%2Ffloat.c;h=5c9631f4b2844007b90f094523a769a30b8f8656;hb=7b870c38e3040fec1165a623ae3986e4fb342218;hp=650decc793532d0cd92310bba7db5e180b32a5f7;hpb=5c3c1241d2e2b5d456865e876490492d76174257;p=libsigrok.git diff --git a/output/float.c b/output/float.c index 650decc7..5c9631f4 100644 --- a/output/float.c +++ b/output/float.c @@ -126,7 +126,7 @@ static int data(struct sr_output *o, const uint8_t *data_in, max = length_in / sizeof(float); for (i = 0; i < max;) { for (j = 0; j < ctx->num_enabled_probes; j++) { - g_string_append_printf(outstr, "%s: %f\n", + g_string_append_printf(outstr, "%s: %.12f\n", (char *)g_ptr_array_index(ctx->probelist, j), fdata[i++]); }