From 258d64960da994e7e05fe99c767a8a136e83b3dc Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 9 Jan 2025 15:30:45 +0100 Subject: [PATCH] alsactl: info - print errors for next_device calls Signed-off-by: Jaroslav Kysela --- alsactl/info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alsactl/info.c b/alsactl/info.c index 1d648d8..31b3294 100644 --- a/alsactl/info.c +++ b/alsactl/info.c @@ -35,7 +35,7 @@ static int pcm_device_list(snd_ctl_t *ctl, snd_pcm_stream_t stream, bool *first) streamfirst = true; while (1) { if ((err = snd_ctl_pcm_next_device(ctl, &dev)) < 0) { - error("snd_ctl_pcm_next_device"); + error("snd_ctl_pcm_next_device: %s", snd_strerror(err)); return err; } if (dev < 0) @@ -102,7 +102,7 @@ static int rawmidi_device_list(snd_ctl_t *ctl, snd_rawmidi_stream_t stream, bool streamfirst = true; while (1) { if ((err = snd_ctl_rawmidi_next_device(ctl, &dev)) < 0) { - error("snd_ctl_rawmidi_next_device"); + error("snd_ctl_rawmidi_next_device: %s", snd_strerror(err)); return err; } if (dev < 0) -- 2.47.1