From f9d81448d80fecdc50541db1749763ef11fb241e Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 10 Jan 2000 14:34:04 +0000 Subject: [PATCH] Also the switch name is shown.. --- alsactl/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.1