From: c vw Date: Tue, 6 Oct 2020 08:09:38 +0000 (+0200) Subject: Cleaner diagnostic messages when using multiple MIDI devices X-Git-Url: https://git.rkrishnan.org/pf/vdrive/vdrive/global?a=commitdiff_plain;h=8145b3f58c67f95270f1b0a6f8cdd35776a97da2;p=pihpsdr.git Cleaner diagnostic messages when using multiple MIDI devices --- diff --git a/mac_midi.c b/mac_midi.c index 45e484b..40a9837 100644 --- a/mac_midi.c +++ b/mac_midi.c @@ -164,12 +164,11 @@ void register_midi_device(char *myname) { MIDIObjectGetStringProperty(dev, kMIDIPropertyName, &pname); CFStringGetCString(pname, name, sizeof(name), 0); CFRelease(pname); - fprintf(stderr,"MIDI device found: >>>%s<<<\n", name); if (!strncmp(name, myname, mylen)) { FoundMIDIref=i; - fprintf(stderr,"MIDI device found and selected: >>>%s<<<\n", name); + fprintf(stderr,"MIDI: registering device >%s<\n", name); } else { - fprintf(stderr,"MIDI device found BUT NOT SELECTED: >>>%s<<<\n", name); + fprintf(stderr,"MIDI: looking for >%s< so %s does not match\n", myname,name); } } }