[commit] r2193 - debugf(x...) -> debugf((x...))

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[commit] r2193 - debugf(x...) -> debugf((x...))

commits-3
 
Author: piumarta
Date: 2010-04-11 13:24:05 -0700 (Sun, 11 Apr 2010)
New Revision: 2193

Modified:
   trunk/platforms/unix/plugins/MIDIPlugin/sqUnixMIDIALSA.inc
Log:
debugf(x...) -> debugf((x...))

Modified: trunk/platforms/unix/plugins/MIDIPlugin/sqUnixMIDIALSA.inc
===================================================================
--- trunk/platforms/unix/plugins/MIDIPlugin/sqUnixMIDIALSA.inc 2010-04-11 20:23:35 UTC (rev 2192)
+++ trunk/platforms/unix/plugins/MIDIPlugin/sqUnixMIDIALSA.inc 2010-04-11 20:24:05 UTC (rev 2193)
@@ -30,7 +30,7 @@
  * Reformatted for and integrated into Squeak build by: ian at
  * squeakland dot oh are gee
  *
- * Last edited: 2009-08-19 04:39:12 by piumarta on emilia-2.local
+ * Last edited: 2010-04-11 13:19:01 by piumarta on ubuntu
  */
 
 /*** MIDI Parameters (used with sqMIDIParameter function) ***/
@@ -244,7 +244,7 @@
 */
 int sqMIDIOpenPort(int portNum, int readSemaIndex, int interfaceClockRate)
 {
-  debugf("sqMIDIOpenPort(%d, %d, %d)\n", portNum, readSemaIndex, interfaceClockRate);
+  debugf(("sqMIDIOpenPort(%d, %d, %d)\n", portNum, readSemaIndex, interfaceClockRate));
   int type= SND_SEQ_PORT_TYPE_APPLICATION;
 
   switch (portNum)
@@ -406,7 +406,7 @@
 */
 int sqMIDIPortReadInto(int portNum, int count, int bufferPtr)
 {
-  debugf("sqMIDIPortRead\n");
+  debugf(("sqMIDIPortRead\n"));
   success(false);
   return 0;
 }
@@ -426,9 +426,9 @@
       snd_seq_event_t ev;
       unsigned char *bytePtr= (unsigned char *)bufferPtr;
 
-      debugf("Port %d Write:", portNum);
-      for (i= 0;  i < count;  ++i) debugf(" %d", (int)bytePtr[i]);
-      debugf(" at %d\n", time);
+      debugf(("Port %d Write:", portNum));
+      for (i= 0;  i < count;  ++i) debugf((" %d", (int)bytePtr[i]));
+      debugf((" at %d\n", time));
       
       snd_seq_ev_clear(&ev);
       snd_seq_ev_set_source(&ev, out_port);
@@ -483,7 +483,7 @@
 
 int midiShutdown(void)
 {
-  debugf("midiShutdown\n");
+  debugf(("midiShutdown\n"));
   success(false);
   return 0;
 }
@@ -496,12 +496,12 @@
   switch (cmd)
     {
     case 128: /* note off */
-      debugf("Note off %d, %d\n", ch, arg1);
+      debugf(("Note off %d, %d\n", ch, arg1));
       snd_seq_ev_set_noteoff(ev, ch, arg1, 0);
       break;
 
     case 144: /* note on */
-      debugf("Note on %d, %d, %d\n", ch, arg1, arg2);
+      debugf(("Note on %d, %d, %d\n", ch, arg1, arg2));
       snd_seq_ev_set_noteon(ev, ch, arg1, arg2);
       break;