]> git.alsa-project.org Git - alsa-lib.git/commitdiff
ucm: add some traces for the config filenames
authorJaroslav Kysela <perex@perex.cz>
Thu, 8 Jan 2026 12:56:48 +0000 (13:56 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 8 Jan 2026 12:56:48 +0000 (13:56 +0100)
It is handy to see the path names in the loading chain.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/parser.c
src/ucm/utils.c

index a76be77657a6f432b74426b9178b2b8e73085a97..60861213d4694e59289f5d3bc42ba59e5ebca7ef 100644 (file)
@@ -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)
index 68a7521e65cf5267113c9fc1719d9380f73ebb4a..dcb5c6e178dd8a09a9e0210c5b51596a6397f9de 100644 (file)
@@ -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;