mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-11 04:27:44 -05:00
ucm: add a basic set of trace/debug log calls
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
66a3d542ac
commit
11235095bf
4 changed files with 69 additions and 15 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue