]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
even better debug output
authorc vw <dl1ycf@darc.de>
Tue, 12 Nov 2019 09:05:29 +0000 (10:05 +0100)
committerc vw <dl1ycf@darc.de>
Tue, 12 Nov 2019 09:05:29 +0000 (10:05 +0100)
midi2.c

diff --git a/midi2.c b/midi2.c
index 7945922a5d75e041ce5c382cfc16fccbe74732e3..a46c5d07f99c639f5918b5835fb15a62979a442c 100644 (file)
--- a/midi2.c
+++ b/midi2.c
@@ -338,6 +338,7 @@ fprintf(stderr,"MIDI:ACTION:%s (%d)\n",cp+7, action);
       // We have a linked list for each key value to speed up searches
       //
       if (event == MIDI_PITCH) {
+fprintf(stderr,"MIDI:TAB:Insert desc=%p in PITCH table\n",desc);
        dp = MidiCommandsTable.pitch;
        if (dp == NULL) {
          MidiCommandsTable.pitch = desc;
@@ -347,6 +348,7 @@ fprintf(stderr,"MIDI:ACTION:%s (%d)\n",cp+7, action);
        }
       }
       if (event == MIDI_KEY || event == MIDI_CTRL) {
+fprintf(stderr,"MIDI:TAB:Insert desc=%p in CMDS[%d] table\n",desc,key);
        dp = MidiCommandsTable.desc[key];
        if (dp == NULL) {
          MidiCommandsTable.desc[key]=desc;