diff options
Diffstat (limited to 'backends/midi/seq.cpp')
-rw-r--r-- | backends/midi/seq.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/backends/midi/seq.cpp b/backends/midi/seq.cpp index 4efad9ceae..37986520bf 100644 --- a/backends/midi/seq.cpp +++ b/backends/midi/seq.cpp @@ -88,12 +88,9 @@ int MidiDriver_SEQ::open() { device = ::open((device_name), O_RDWR, 0); - if ((device_name == NULL) || (device < 0)) { - if (device_name == NULL) - warning("Opening /dev/null (no music will be heard) "); - else - warning("Cannot open rawmidi device %s - using /dev/null (no music will be heard) ", - device_name); + if (device < 0) { + warning("Cannot open rawmidi device %s - using /dev/null (no music will be heard)", + device_name); device = (::open(("/dev/null"), O_RDWR, 0)); if (device < 0) error("Cannot open /dev/null to dump midi output"); @@ -145,7 +142,7 @@ void MidiDriver_SEQ::send(uint32 b) { buf[position++] = 0; break; default: - warning("MidiDriver_SEQ::send: unknown : %08x", (int)b); + warning("MidiDriver_SEQ::send: unknown: %08x", (int)b); break; } if (write(device, buf, position) == -1) |