mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
ucm: macro - fix the error message, print id
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
b67257e6fd
commit
70e2ed50a3
1 changed files with 4 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue