aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/oss.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-08-01 16:20:28 -0700
committerChris Robinson <[email protected]>2010-08-01 16:20:28 -0700
commitfe6e73ede9c4137992e2945bf4db0d7ab897208b (patch)
treef41d7d6bf96e7dc3cffc15d51821fbe5e24bafff /Alc/oss.c
parent8dab4c418cd95a9ceb7ecf3211c1cf97201b7b1e (diff)
Be a bit more verbose when a device fails to open
Diffstat (limited to 'Alc/oss.c')
-rw-r--r--Alc/oss.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Alc/oss.c b/Alc/oss.c
index 8fda248c..66c3c55b 100644
--- a/Alc/oss.c
+++ b/Alc/oss.c
@@ -166,8 +166,7 @@ static ALCboolean oss_open_playback(ALCdevice *device, const ALCchar *deviceName
if(data->fd == -1)
{
free(data);
- if(errno != ENOENT)
- AL_PRINT("Could not open %s: %s\n", driver, strerror(errno));
+ AL_PRINT("Could not open %s: %s\n", driver, strerror(errno));
return ALC_FALSE;
}
@@ -336,8 +335,7 @@ static ALCboolean oss_open_capture(ALCdevice *device, const ALCchar *deviceName)
if(data->fd == -1)
{
free(data);
- if(errno != ENOENT)
- AL_PRINT("Could not open %s: %s\n", driver, strerror(errno));
+ AL_PRINT("Could not open %s: %s\n", driver, strerror(errno));
return ALC_FALSE;
}