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:
Jaroslav Kysela 2021-02-03 11:55:53 +01:00
parent 296b067fc7
commit 0d232d714a
2 changed files with 2 additions and 2 deletions

View file

@ -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);
free(s);
if (err) {
uc_error("Regex '%s' compilation failed (code %d)", err);
uc_error("Regex '%s' compilation failed (code %d)", s, err);
return -EINVAL;
}