X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Foutput%2Fanalog.c;h=94175369e1a15c43e4d0a48f7a3a6df9b4fb6b4e;hb=0f523f2b45e84114add85cec5a97aed3f85f95e6;hp=f5d23e6fc085b896e0a18246bf51e2134041294a;hpb=688e44ae06610d64ef90b720cd61262e5b606d55;p=libsigrok.git diff --git a/src/output/analog.c b/src/output/analog.c index f5d23e6f..94175369 100644 --- a/src/output/analog.c +++ b/src/output/analog.c @@ -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"); @@ -204,7 +205,7 @@ static int cleanup(struct sr_output *o) SR_PRIV struct sr_output_module output_analog = { .id = "analog", .name = "Analog", - .desc = "Analog data and types", + .desc = "ASCII analog data values and units", .exts = NULL, .flags = 0, .options = get_options,