X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=output%2Foutput_vcd.c;h=509aad0754b7b0075aab2796ee6a0759fb693d70;hb=f36cbf60cbd43be46ede083265549068db21f4b6;hp=bd16bc2e1d26e7829893a90f76aeecea1761d60d;hpb=d494a4aa9dcbd90126d86757d16fa3e0f0a419f3;p=libsigrok.git diff --git a/output/output_vcd.c b/output/output_vcd.c index bd16bc2e..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,7 +214,7 @@ static int data(struct sr_output *o, const char *data_in, uint64_t length_in, } struct sr_output_format output_vcd = { - .extension = "vcd", + .id = "vcd", .description = "Value Change Dump (VCD)", .df_type = SR_DF_LOGIC, .init = init,