From: Jaroslav Kysela Date: Thu, 8 Jan 2026 12:56:48 +0000 (+0100) Subject: ucm: add some traces for the config filenames X-Git-Tag: v1.2.15.2~2 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=50b532de795c6342bdf0aaf7b327526a6a0aa042;p=alsa-lib.git ucm: add some traces for the config filenames It is handy to see the path names in the loading chain. Signed-off-by: Jaroslav Kysela --- diff --git a/src/ucm/parser.c b/src/ucm/parser.c index a76be776..60861213 100644 --- a/src/ucm/parser.c +++ b/src/ucm/parser.c @@ -3417,6 +3417,7 @@ static int parse_toplevel_path(snd_use_case_mgr_t *uc_mgr, } ucm_filename(fn, sizeof(fn), version, dir, file); + snd_trace(UCM, "probing configuration file '%s'", fn); if (access(fn, R_OK) == 0 && lstat64(fn, &st) == 0) { if (S_ISLNK(st.st_mode)) { ssize_t r; @@ -3448,6 +3449,7 @@ static int parse_toplevel_path(snd_use_case_mgr_t *uc_mgr, } free(link); } + snd_trace(UCM, "using directory '%s' and file '%s'", dir, file); if (replace_string(&uc_mgr->conf_dir_name, dir) == NULL) goto __enomem; if (replace_string(&uc_mgr->conf_file_name, file) == NULL) diff --git a/src/ucm/utils.c b/src/ucm/utils.c index 68a7521e..dcb5c6e1 100644 --- a/src/ucm/utils.c +++ b/src/ucm/utils.c @@ -364,6 +364,7 @@ int uc_mgr_config_load_into(int format, const char *file, snd_config_t *top) const char *default_paths[2]; int err; + snd_trace(UCM, "loading config '%s'", file); fp = fopen(file, "r"); if (!fp) { err = -errno;