From 70e2ed50a331bd49de6e8469bee0f48993866607 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 17 May 2022 18:19:44 +0200 Subject: [PATCH] ucm: macro - fix the error message, print id Signed-off-by: Jaroslav Kysela --- src/ucm/parser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ucm/parser.c b/src/ucm/parser.c index 65ebc179..9b191b66 100644 --- a/src/ucm/parser.c +++ b/src/ucm/parser.c @@ -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) { -- 2.47.1