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 <tpo2@sourcepole.ch>
This commit is contained in:
Takashi Iwai 2007-05-23 12:03:29 +02:00
parent cdccd6585f
commit 035cbc3f9b

View file

@ -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);