From 035cbc3f9bf6f2b97c45fa4566ee5589d6b7d2f4 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 23 May 2007 12:03:29 +0200 Subject: [PATCH] alsactl - More explicit open error message Include more explicit error message when open config file in write mode (this is for the "names" command) From: Tomas Pospisek --- alsactl/names.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alsactl/names.c b/alsactl/names.c index f158b92..ba10770 100644 --- a/alsactl/names.c +++ b/alsactl/names.c @@ -535,7 +535,7 @@ int generate_names(const char *cfgfile) err = snd_output_stdio_open(&out, cfgfile, "w+"); } if (err < 0) { - error("Cannot open %s for writing", cfgfile); + error("Cannot open %s for writing: %s", cfgfile, snd_strerror(err)); return -errno; } err = snd_config_save(config, out);