]> git.alsa-project.org Git - alsa-lib.git/commitdiff
ucm: parser - use correct filename in parser_master_file()
authorJaroslav Kysela <perex@perex.cz>
Mon, 3 Feb 2020 13:44:13 +0000 (14:44 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 3 Feb 2020 13:44:13 +0000 (14:44 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/parser.c

index 6c5d29026e5e16277a996bcc12c208ec773822a2..dbbd381755b1dfd0ba8f4a2bf2f1523e5675ef51 100644 (file)
@@ -1413,16 +1413,16 @@ static int parse_master_file(snd_use_case_mgr_t *uc_mgr, snd_config_t *cfg)
        if (uc_mgr->conf_format >= 2) {
                err = snd_config_search(cfg, "Syntax", &n);
                if (err < 0) {
-                       uc_error("Syntax field not found in %s", uc_mgr->conf_dir_name);
+                       uc_error("Syntax field not found in %s", uc_mgr->conf_file_name);
                        return -EINVAL;
                }
                err = snd_config_get_integer(n, &l);
                if (err < 0) {
-                       uc_error("Syntax field is invalid in %s", uc_mgr->conf_dir_name);
+                       uc_error("Syntax field is invalid in %s", uc_mgr->conf_file_name);
                        return err;
                }
                if (l < 2 || l > SYNTAX_VERSION_MAX) {
-                       uc_error("Incompatible syntax %d in %s", l, uc_mgr->conf_dir_name);
+                       uc_error("Incompatible syntax %d in %s", l, uc_mgr->conf_file_name);
                        return -EINVAL;
                }
                /* delete this field to avoid strcmp() call in the loop */