ucm: macro - fix the error message, print id

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2022-05-17 18:19:44 +02:00
parent b67257e6fd
commit 70e2ed50a3

View file

@ -484,7 +484,10 @@ static int evaluate_macro(snd_use_case_mgr_t *uc_mgr,
snd_config_for_each(i, next, d) {
n = snd_config_iterator_entry(i);
if (snd_config_get_type(n) != SND_CONFIG_TYPE_COMPOUND) {
uc_error("compound type expected for DefineMacro");
const char *id;
if (snd_config_get_id(n, &id))
id = "";
uc_error("compound type expected for Macro.%s", id);
return -EINVAL;
}
snd_config_for_each(i2, next2, n) {