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
master
Buginator 2009-05-10 03:27:00 +00:00 committed by Git SVN Gateway
parent b60b1ad10b
commit 1855990fa8
2 changed files with 3 additions and 3 deletions

View File

@ -1023,7 +1023,7 @@ SDWORD audio_GetTrackID( const char *fileName )
if (fileName == NULL || strlen(fileName) == 0) 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; return SAMPLE_NOT_FOUND;
} }

View File

@ -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. 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; return 0;
} }
psTrack = resGetData( "WAV", fileName ); psTrack = resGetData( "WAV", fileName );
if (psTrack == NULL) 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; return 0;
} }