From 1855990fa804e3b54af64422d9f46e14e13726b1 Mon Sep 17 00:00:00 2001 From: Buginator Date: Sun, 10 May 2009 03:27:00 +0000 Subject: [PATCH] Change non-fatal debug messages in the sound code from LOG_ERROR to LOG_WARNING instead. fixes ticket:427 git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7382 4a71c877-e1ca-e34f-864e-861f7616d084 --- lib/sound/audio.c | 2 +- lib/sound/track.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sound/audio.c b/lib/sound/audio.c index 143370e79..7a61a2ad3 100644 --- a/lib/sound/audio.c +++ b/lib/sound/audio.c @@ -1023,7 +1023,7 @@ SDWORD audio_GetTrackID( const char *fileName ) if (fileName == NULL || strlen(fileName) == 0) { - debug(LOG_ERROR, "audio_GetTrackID: fileName is %s", (fileName == NULL) ? "a NULL pointer" : "empty"); + debug(LOG_WARNING, "fileName is %s", (fileName == NULL) ? "a NULL pointer" : "empty"); return SAMPLE_NOT_FOUND; } diff --git a/lib/sound/track.c b/lib/sound/track.c index 826e11aaa..6776d5f72 100644 --- a/lib/sound/track.c +++ b/lib/sound/track.c @@ -97,14 +97,14 @@ unsigned int sound_SetTrackVals(const char* fileName, BOOL loop, unsigned int vo if (fileName == NULL || strlen(fileName) == 0) // check for empty filename. This is a non fatal error. { - debug(LOG_ERROR, "sound_SetTrackVals: fileName is %s", (fileName == NULL) ? "a NULL pointer" : "empty"); + debug(LOG_WARNING, "fileName is %s", (fileName == NULL) ? "a NULL pointer" : "empty"); return 0; } psTrack = resGetData( "WAV", fileName ); if (psTrack == NULL) { - debug(LOG_ERROR, "sound_SetTrackVals: track %s resource not found", fileName); + debug(LOG_WARNING, "track %s resource not found", fileName); return 0; }