ucm: add a basic set of trace/debug log calls

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2025-11-07 15:37:11 +01:00
parent 66a3d542ac
commit 11235095bf
4 changed files with 69 additions and 15 deletions

View file

@ -683,6 +683,8 @@ int uc_mgr_set_variable(snd_use_case_mgr_t *uc_mgr, const char *name,
struct ucm_value *curr;
char *val2;
snd_trace(UCM, "set variable '%s'='%s'", name, val);
list_for_each(pos, &uc_mgr->variable_list) {
curr = list_entry(pos, struct ucm_value, list);
if (strcmp(curr->name, name) == 0) {
@ -718,6 +720,8 @@ int uc_mgr_delete_variable(snd_use_case_mgr_t *uc_mgr, const char *name)
struct list_head *pos;
struct ucm_value *curr;
snd_trace(UCM, "delete variable '%s'", name);
list_for_each(pos, &uc_mgr->variable_list) {
curr = list_entry(pos, struct ucm_value, list);
if (strcmp(curr->name, name) == 0) {