From d7df990e6c9e090c96ad40138ccff910abe72d92 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 6 Aug 2009 13:16:22 +0200 Subject: [PATCH] MidiWinMM: use qWarning() rather than printf() Using printf() is really old C-style, therefore changed all printf()s to qWarning()s. (cherry picked from commit 94c5c5a46fa13a3ce4a3e3012f0e8eae9e395ee8) --- src/core/midi/midi_winmm.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/midi/midi_winmm.cpp b/src/core/midi/midi_winmm.cpp index 86d67a945..87f754bb5 100644 --- a/src/core/midi/midi_winmm.cpp +++ b/src/core/midi/midi_winmm.cpp @@ -145,7 +145,7 @@ void midiWinMM::subscribeReadablePort( midiPort * _port, { if( _subscribe && _port->inputEnabled() == FALSE ) { - printf( "port %s can't be (un)subscribed!\n", + qWarning( "port %s can't be (un)subscribed!\n", _port->displayName().toAscii().constData() ); return; } @@ -166,7 +166,7 @@ void midiWinMM::subscribeWritablePort( midiPort * _port, { if( _subscribe && _port->outputEnabled() == FALSE ) { - printf( "port %s can't be (un)subscribed!\n", + qWarning( "port %s can't be (un)subscribed!\n", _port->displayName().toAscii().constData() ); return; } @@ -243,7 +243,7 @@ void midiWinMM::handleInputEvent( HMIDIIN _hm, DWORD _ev ) par1 + par2*128, 0 ), midiTime() ); default: - printf( "WinMM-MIDI: unhandled input " + qWarning( "WinMM-MIDI: unhandled input " "event %d\n", cmdtype ); break; }