Fix the extra space char being emitted in this message when breakpoints resolve -
authorJason Molenda <jmolenda@apple.com>
Fri, 28 Sep 2012 01:50:47 +0000 (01:50 +0000)
committerJason Molenda <jmolenda@apple.com>
Fri, 28 Sep 2012 01:50:47 +0000 (01:50 +0000)
1 location  added to breakpoint 2

llvm-svn: 164810

lldb/tools/driver/Driver.cpp

index 833f289..84d464f 100644 (file)
@@ -859,7 +859,7 @@ Driver::HandleBreakpointEvent (const SBEvent &event)
             SBBreakpoint breakpoint = SBBreakpoint::GetBreakpointFromEvent(event);
             int message_len = ::snprintf (message, sizeof(message), "%d location%s added to breakpoint %d\n", 
                                           num_new_locations,
-                                          num_new_locations == 1 ? " " : "s ",
+                                          num_new_locations == 1 ? "" : "s",
                                           breakpoint.GetID());
             m_io_channel_ap->OutWrite(message, message_len, ASYNC);
         }