X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=output%2Foutput_vcd.c;h=509aad0754b7b0075aab2796ee6a0759fb693d70;hb=2f5c8c9696f4a4a8ca7e3c7e6e7d2766a4927026;hp=1c5d723d1abd9664ab40368d953c719851cfe809;hpb=120b259ea8f17b74deca3ba4b71e78771539bde8;p=libsigrok.git diff --git a/output/output_vcd.c b/output/output_vcd.c index 1c5d723d..509aad07 100644 --- a/output/output_vcd.c +++ b/output/output_vcd.c @@ -23,6 +23,7 @@ #include #include #include +#include #include "config.h" struct context { @@ -61,7 +62,7 @@ static int init(struct sr_output *o) ctx->probelist[ctx->num_enabled_probes++] = probe->name; } if (ctx->num_enabled_probes > 94) { - g_warning("VCD only supports 94 probes."); + sr_warn("VCD only supports 94 probes."); return SR_ERR; } @@ -213,10 +214,10 @@ static int data(struct sr_output *o, const char *data_in, uint64_t length_in, } struct sr_output_format output_vcd = { - "vcd", - "Value Change Dump (VCD)", - SR_DF_LOGIC, - init, - data, - event, + .id = "vcd", + .description = "Value Change Dump (VCD)", + .df_type = SR_DF_LOGIC, + .init = init, + .data = data, + .event = event, };