From: Bert Vermeulen Date: Fri, 1 Aug 2014 10:04:20 +0000 (+0200) Subject: input/vcd: Make less noise in format match failure. X-Git-Tag: libsigrok-0.4.0~1179 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2f6f0e9187cc8e7f70da9e1107fa0cb6f6598b0c;p=libsigrok.git input/vcd: Make less noise in format match failure. --- diff --git a/src/input/vcd.c b/src/input/vcd.c index 6759d73e..eec53e10 100644 --- a/src/input/vcd.c +++ b/src/input/vcd.c @@ -141,10 +141,8 @@ static gboolean parse_section(FILE *file, gchar **name, gchar **contents) if (!read_until(file, NULL, 'N')) return FALSE; /* Section tag should start with $. */ - if (fgetc(file) != '$') { - sr_err("Expected $ at beginning of section."); + if (fgetc(file) != '$') return FALSE; - } /* Read the section tag */ sname = g_string_sized_new(32);