[Lldb-commits] [lldb] r164810 - /lldb/trunk/tools/driver/Driver.cpp

Jason Molenda jmolenda at apple.com
Thu Sep 27 18:50:47 PDT 2012


Author: jmolenda
Date: Thu Sep 27 20:50:47 2012
New Revision: 164810

URL: http://llvm.org/viewvc/llvm-project?rev=164810&view=rev
Log:
Fix the extra space char being emitted in this message when breakpoints resolve -

1 location  added to breakpoint 2


Modified:
    lldb/trunk/tools/driver/Driver.cpp

Modified: lldb/trunk/tools/driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/driver/Driver.cpp?rev=164810&r1=164809&r2=164810&view=diff
==============================================================================
--- lldb/trunk/tools/driver/Driver.cpp (original)
+++ lldb/trunk/tools/driver/Driver.cpp Thu Sep 27 20:50:47 2012
@@ -859,7 +859,7 @@
             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);
         }





More information about the lldb-commits mailing list