mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-25 01:40:10 -05:00
ucm: parser - use correct filename in parser_master_file()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
b2fe99277a
commit
c5a09b0fea
1 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
if (uc_mgr->conf_format >= 2) {
|
||||||
err = snd_config_search(cfg, "Syntax", &n);
|
err = snd_config_search(cfg, "Syntax", &n);
|
||||||
if (err < 0) {
|
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;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
err = snd_config_get_integer(n, &l);
|
err = snd_config_get_integer(n, &l);
|
||||||
if (err < 0) {
|
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;
|
return err;
|
||||||
}
|
}
|
||||||
if (l < 2 || l > SYNTAX_VERSION_MAX) {
|
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;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
/* delete this field to avoid strcmp() call in the loop */
|
/* delete this field to avoid strcmp() call in the loop */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue