OSDN Git Service

ucm: warn about unknown sequence commands
authorJaroslav Kysela <perex@perex.cz>
Tue, 9 Mar 2021 19:02:57 +0000 (20:02 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 11 Mar 2021 08:26:07 +0000 (09:26 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/parser.c

index e1ff1c1..a20e173 100644 (file)
@@ -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);
        }