mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-03 01:40:08 -05:00
ucm: fix two error messages
- add missing argument to error msg in if_eval_regex_match() - print correct error value in uc_mgr_config_load_file() Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
296b067fc7
commit
0d232d714a
2 changed files with 2 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ int uc_mgr_config_load_file(snd_use_case_mgr_t *uc_mgr,
|
||||||
file);
|
file);
|
||||||
err = uc_mgr_config_load(uc_mgr->conf_format, filename, cfg);
|
err = uc_mgr_config_load(uc_mgr->conf_format, filename, cfg);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
uc_error("error: failed to open file %s : %d", filename, -errno);
|
uc_error("error: failed to open file %s: %d", filename, err);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ static int if_eval_regex_match(snd_use_case_mgr_t *uc_mgr, snd_config_t *eval)
|
||||||
err = regcomp(&re, s, options);
|
err = regcomp(&re, s, options);
|
||||||
free(s);
|
free(s);
|
||||||
if (err) {
|
if (err) {
|
||||||
uc_error("Regex '%s' compilation failed (code %d)", err);
|
uc_error("Regex '%s' compilation failed (code %d)", s, err);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue