]> git.alsa-project.org Git - alsa-lib.git/commitdiff
ucm: regex: fix the error message (missing argument)
authorJaroslav Kysela <perex@perex.cz>
Thu, 26 Jun 2025 09:33:15 +0000 (11:33 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 26 Jun 2025 09:33:15 +0000 (11:33 +0200)
Link: https://github.com/alsa-project/alsa-ucm-conf/pull/580
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/ucm_regex.c

index 1471f07657d9afce91e4c915bdd7bec2f9e522c6..dfcab04231aa673c8ac92430bfaa32b454d47719 100644 (file)
@@ -154,7 +154,7 @@ int uc_mgr_define_regex(snd_use_case_mgr_t *uc_mgr, const char *name,
        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;
        }