From: Gerhard Sittig Date: Sun, 5 Sep 2021 10:59:21 +0000 (+0200) Subject: input/vcd: raise severity of messages about unsupported data types X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1a35f71170e46d8fff91d0b285f737ccdd3b3796;p=libsigrok.git input/vcd: raise severity of messages about unsupported data types The VCD input module did check for unsupported data types in $var declarations. But the emitted message only was of INFO level and thus would not be seen at the default log level. Use ERR instead to raise awareness. Let users see by default that the input contains data which cannot get processed (and why the import terminated prematurely). This addresses part of bug #1757. --- diff --git a/src/input/vcd.c b/src/input/vcd.c index e751e885..2cb4eeed 100644 --- a/src/input/vcd.c +++ b/src/input/vcd.c @@ -855,7 +855,7 @@ static int parse_header_var(struct context *inc, char *contents) } else if (is_real || is_int) { ch_type = SR_CHANNEL_ANALOG; } else { - sr_info("Unsupported signal type: '%s'", type); + sr_err("Unsupported signal type: '%s'", type); g_strfreev(parts); return SR_ERR_DATA; }