From: Jaroslav Kysela Date: Mon, 10 Jan 2000 14:34:04 +0000 (+0000) Subject: Also the switch name is shown.. X-Git-Tag: v1.0.3~407 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=f9d81448d80fecdc50541db1749763ef11fb241e;p=alsa-utils.git Also the switch name is shown.. --- diff --git a/alsactl/setup.c b/alsactl/setup.c index cb0057f..53d0a12 100644 --- a/alsactl/setup.c +++ b/alsactl/setup.c @@ -300,7 +300,7 @@ static int determine_switches(void *handle, struct ctl_switch **csw, int interfa bzero(&sw, sizeof(sw)); strncpy(sw.name, item->name, sizeof(sw.name)); if ((err = switch_read(handle, &sw, interface, device)) < 0) { - error("Cannot read switch for interface %i and device %i: %s", interface, device, snd_strerror(err)); + error("Cannot read switch '%s' for interface %i and device %i: %s", sw.name, interface, device, snd_strerror(err)); free(list.pswitches); return 1; }