From f5d76dde4ec8c3b6a5920f6ac383d22759c34615 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 23 May 2007 12:04:49 +0200 Subject: [PATCH] alsactl - More explicit open error message (#2) same as last patch, this time for the store command Tomas Pospisek --- alsactl/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alsactl/state.c b/alsactl/state.c index 1beee23..a20f4e7 100644 --- a/alsactl/state.c +++ b/alsactl/state.c @@ -1277,7 +1277,7 @@ int save_state(const char *file, const char *cardname) else err = snd_output_stdio_open(&out, file, "w"); if (err < 0) { - error("Cannot open %s for writing", file); + error("Cannot open %s for writing: %s", file, snd_strerror(err)); return -errno; } err = snd_config_save(config, out); -- 2.47.3