aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-07 07:02:58 -0800
committerChris Robinson <[email protected]>2012-02-07 07:04:33 -0800
commitdeb84cfdacd00e90acedb66985a25fa7f3caaf42 (patch)
tree344107ee07362c45a6c980cabd9d6bc1622a4ee5 /Alc
parent7ad1b45d11e74dd8d66378c9fbe913e2c5b53930 (diff)
Improve a couple error messages with the full ALSA device control name
Diffstat (limited to 'Alc')
-rw-r--r--Alc/backends/alsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/alsa.c b/Alc/backends/alsa.c
index b20e6ed3..3ad7f20d 100644
--- a/Alc/backends/alsa.c
+++ b/Alc/backends/alsa.c
@@ -306,12 +306,12 @@ static DevMap *probe_devices(snd_pcm_stream_t stream, ALuint *count)
sprintf(name, "hw:%d", card);
if((err = snd_ctl_open(&handle, name, 0)) < 0)
{
- ERR("control open (%i): %s\n", card, snd_strerror(err));
+ ERR("control open (hw:%d): %s\n", card, snd_strerror(err));
goto next_card;
}
if((err = snd_ctl_card_info(handle, info)) < 0)
{
- ERR("control hardware info (%i): %s\n", card, snd_strerror(err));
+ ERR("control hardware info (hw:%d): %s\n", card, snd_strerror(err));
snd_ctl_close(handle);
goto next_card;
}
@@ -332,7 +332,7 @@ static DevMap *probe_devices(snd_pcm_stream_t stream, ALuint *count)
snd_pcm_info_set_stream(pcminfo, stream);
if((err = snd_ctl_pcm_info(handle, pcminfo)) < 0) {
if(err != -ENOENT)
- ERR("control digital audio info (%i): %s\n", card, snd_strerror(err));
+ ERR("control digital audio info (hw:%d): %s\n", card, snd_strerror(err));
continue;
}