Fix up a few mackie control surface exceptions.
authorCarl Hetherington <carl@carlh.net>
Sun, 6 Feb 2011 18:51:35 +0000 (18:51 +0000)
committerCarl Hetherington <carl@carlh.net>
Sun, 6 Feb 2011 18:51:35 +0000 (18:51 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8729 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/surfaces/mackie/mackie_port.cc

index aa80fc0616d07f4a7e202c781246d54ba25f0023..77cce35f43ffa7c12c94c777dc9c157ae27c1a02 100644 (file)
@@ -335,7 +335,7 @@ Control & MackiePort::lookup_control( MIDI::byte * bytes, size_t count )
                        {
                                MidiByteArray mba( count, bytes );
                                ostringstream os;
-                               os << "control for fader" << bytes << " id " << midi_id << " is null";
+                               os << "Control for fader" << bytes << " id " << midi_id << " is null";
                                throw MackieControlException( os.str() );
                        }
                        break;
@@ -348,7 +348,7 @@ Control & MackiePort::lookup_control( MIDI::byte * bytes, size_t count )
                        {
                                MidiByteArray mba( count, bytes );
                                ostringstream os;
-                               os << "control for button " << bytes << " is null";
+                               os << "Control for button " << mba << " is null";
                                throw MackieControlException( os.str() );
                        }
                        break;
@@ -360,7 +360,7 @@ Control & MackiePort::lookup_control( MIDI::byte * bytes, size_t count )
                        {
                                MidiByteArray mba( count, bytes );
                                ostringstream os;
-                               os << "control for rotary " << mba << " is null";
+                               os << "Control for rotary " << mba << " is null";
                                throw MackieControlException( os.str() );
                        }
                        break;
@@ -368,7 +368,7 @@ Control & MackiePort::lookup_control( MIDI::byte * bytes, size_t count )
                default:
                        MidiByteArray mba( count, bytes );
                        ostringstream os;
-                       os << "Cannot find control for " << bytes;
+                       os << "Cannot find control for " << mba;
                        throw MackieControlException( os.str() );
        }
        return *control;