aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-04-01 17:20:42 +0000
committerTom Tromey <tromey@redhat.com>2011-04-01 17:20:42 +0000
commit5d901a7357a8f4099aa95a582c8113557c599389 (patch)
tree45f1a9038a7bece0b250bda0d961ef6297fd3064
parentaf57139d017fd821ea0cca4c107bd7946a016111 (diff)
downloadgdb-5d901a7357a8f4099aa95a582c8113557c599389.zip
gdb-5d901a7357a8f4099aa95a582c8113557c599389.tar.gz
gdb-5d901a7357a8f4099aa95a582c8113557c599389.tar.bz2
* utils.c (report_command_stats): Don't print `-' for negative
number.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/utils.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9b9f431..e8607df 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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)
diff --git a/gdb/utils.c b/gdb/utils.c
index 496c9dc..51d32b7 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -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
}