diff options
author | Chris Robinson <[email protected]> | 2011-07-10 22:28:34 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-07-10 22:28:34 -0700 |
commit | 479b4c9531c9b676da8143c04ef0f634eec61d85 (patch) | |
tree | 1490a1c499a6926a163dbccd39e3c437d809837d /Alc | |
parent | 28f7d2151e14f18742a94f2ac61628982ec8b161 (diff) |
Use logging macros in the solaris backend
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/solaris.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Alc/solaris.c b/Alc/solaris.c index 075715a9..32fec944 100644 --- a/Alc/solaris.c +++ b/Alc/solaris.c @@ -73,7 +73,7 @@ static ALuint SolarisProc(ALvoid *ptr) { if(errno != EAGAIN && errno != EWOULDBLOCK && errno != EINTR) { - AL_PRINT("write failed: %s\n", strerror(errno)); + ERROR("write failed: %s\n", strerror(errno)); aluHandleDisconnect(pDevice); break; } @@ -111,7 +111,7 @@ static ALCboolean solaris_open_playback(ALCdevice *device, const ALCchar *device if(data->fd == -1) { free(data); - AL_PRINT("Could not open %s: %s\n", driver, strerror(errno)); + ERROR("Could not open %s: %s\n", driver, strerror(errno)); return ALC_FALSE; } @@ -170,13 +170,13 @@ static ALCboolean solaris_reset_playback(ALCdevice *device) if(ioctl(data->fd, AUDIO_SETINFO, &info) < 0) { - AL_PRINT("ioctl failed: %s\n", strerror(errno)); + ERROR("ioctl failed: %s\n", strerror(errno)); return ALC_FALSE; } if(ChannelsFromDevFmt(device->FmtChans) != info.play.channels) { - AL_PRINT("Could not set %d channels, got %d instead\n", ChannelsFromDevFmt(device->FmtChans), info.play.channels); + ERROR("Could not set %d channels, got %d instead\n", ChannelsFromDevFmt(device->FmtChans), info.play.channels); return ALC_FALSE; } @@ -187,15 +187,15 @@ static ALCboolean solaris_reset_playback(ALCdevice *device) (info.play.precision == 16 && info.play.encoding == AUDIO_ENCODING_LINEAR && device->FmtType == DevFmtShort))) { - AL_PRINT("Could not set %#x sample type, got %d (%#x)\n", - device->FmtType, info.play.precision, info.play.encoding); + ERROR("Could not set %#x sample type, got %d (%#x)\n", + device->FmtType, info.play.precision, info.play.encoding); return ALC_FALSE; } if(device->Frequency != info.play.sample_rate) { if((device->Flags&DEVICE_FREQUENCY_REQUEST)) - AL_PRINT("Failed to set requested frequency %dhz, got %dhz instead\n", device->Frequency, info.play.sample_rate); + ERROR("Failed to set requested frequency %dhz, got %dhz instead\n", device->Frequency, info.play.sample_rate); device->Flags &= ~DEVICE_FREQUENCY_REQUEST; device->Frequency = info.play.sample_rate; } @@ -230,7 +230,7 @@ static void solaris_stop_playback(ALCdevice *device) data->killNow = 0; if(ioctl(data->fd, AUDIO_DRAIN) < 0) - AL_PRINT("Error draining device: %s\n", strerror(errno)); + ERROR("Error draining device: %s\n", strerror(errno)); free(data->mix_data); data->mix_data = NULL; |