From: Clemens Ladisch Date: Wed, 9 Jan 2008 08:42:42 +0000 (+0100) Subject: conf: show path of any missing configuration file X-Git-Tag: v1.0.16rc1~21 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=a73ad3f2655c5f0a617fdeff6fe3b0d147096fa8;p=alsa-lib.git conf: show path of any missing configuration file In all cases where a configuration file is not found, show an error message with its full path. --- diff --git a/src/conf.c b/src/conf.c index 321dc9a1..4389c977 100644 --- a/src/conf.c +++ b/src/conf.c @@ -591,6 +591,7 @@ static int get_char_skip_comments(input_t *input) } err = snd_input_stdio_open(&in, str, "r"); if (err < 0) { + SNDERR("Cannot access file %s", str); free(str); return err; } @@ -3005,6 +3006,7 @@ int snd_config_update_r(snd_config_t **_top, snd_config_update_t **_update, cons lf->ino = st.st_ino; lf->mtime = st.st_mtime; } else { + SNDERR("Cannot access file %s", lf->name); memmove(&local->finfo[k], &local->finfo[k+1], sizeof(struct finfo) * (local->count - k - 1)); k--; local->count--;