From: Jaroslav Kysela Date: Tue, 9 Mar 2021 19:02:57 +0000 (+0100) Subject: ucm: warn about unknown sequence commands X-Git-Tag: v1.2.5~88 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=56c11293e3cb52b4e7cf07d13468ba4b35566cd0;p=alsa-lib.git ucm: warn about unknown sequence commands Signed-off-by: Jaroslav Kysela --- diff --git a/src/ucm/parser.c b/src/ucm/parser.c index e1ff1c18..a20e173d 100644 --- a/src/ucm/parser.c +++ b/src/ucm/parser.c @@ -812,7 +812,13 @@ static int parse_sequence(snd_use_case_mgr_t *uc_mgr, } continue; } - + + if (strcmp(cmd, "comment") == 0) + goto skip; + + uc_error("error: sequence command '%s' is ignored", cmd); + +skip: list_del(&curr->list); uc_mgr_free_sequence_element(curr); }