# HG changeset patch # User peter1138 # Date 2006-05-02 19:09:49 # Node ID bc7989173f889bb7b24ac31617ad50a15b187546 # Parent 46ea3bac69e0ae4bcfc79731f8909fd8edb3ec80 (svn r4692) - Use DEBUG() instead of direct fprintf in extmidi music driver, and silence 'set volume not implemented' warning at the default debug level. diff --git a/music/extmidi.c b/music/extmidi.c --- a/music/extmidi.c +++ b/music/extmidi.c @@ -6,6 +6,7 @@ #include "../sound.h" #include "../string.h" #include "../variables.h" +#include "../debug.h" #include "extmidi.h" #include #include @@ -58,7 +59,7 @@ static bool ExtMidiIsPlaying(void) static void ExtMidiSetVolume(byte vol) { - fprintf(stderr, "extmidi: set volume not implemented\n"); + DEBUG(driver, 1) ("extmidi: set volume not implemented"); } static void DoPlay(void) @@ -81,7 +82,7 @@ static void DoPlay(void) } case -1: - fprintf(stderr, "extmidi: couldn't fork: %s\n", strerror(errno)); + DEBUG(driver, 0) ("extmidi: couldn't fork: %s", strerror(errno)); /* FALLTHROUGH */ default: