* utils.c (report_command_stats): Don't print `-' for negative
authorTom Tromey <tromey@redhat.com>
Fri, 1 Apr 2011 17:20:42 +0000 (17:20 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 1 Apr 2011 17:20:42 +0000 (17:20 +0000)
number.

gdb/ChangeLog
gdb/utils.c

index 9b9f4319e34bad5930fa93d5b244f8394155ce8e..e8607df8b92ba365b826b62c1984647f56f131b9 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-01  Tom Tromey  <tromey@redhat.com>
+
+       * utils.c (report_command_stats): Don't print `-' for negative
+       number.
+
 2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
 
        * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
index 496c9dca29c416aa7eb8c407f3d3a7ffabf5eeed..51d32b70589e3e150cdbda613d72bf13d6819e09 100644 (file)
@@ -657,10 +657,10 @@ report_command_stats (void *arg)
       long space_diff = space_now - start_stats->start_space;
 
       printf_unfiltered (msg_type == 0
-                        ? _("Space used: %ld (%c%ld during startup)\n")
-                        : _("Space used: %ld (%c%ld for this command)\n"),
+                        ? _("Space used: %ld (%s%ld during startup)\n")
+                        : _("Space used: %ld (%s%ld for this command)\n"),
                         space_now,
-                        (space_diff >= 0 ? '+' : '-'),
+                        (space_diff >= 0 ? "+" : ""),
                         space_diff);
 #endif
     }