diff options
author | Tom Tromey <tromey@redhat.com> | 2011-04-01 17:20:42 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-04-01 17:20:42 +0000 |
commit | 5d901a7357a8f4099aa95a582c8113557c599389 (patch) | |
tree | 45f1a9038a7bece0b250bda0d961ef6297fd3064 /gdb/utils.c | |
parent | af57139d017fd821ea0cca4c107bd7946a016111 (diff) | |
download | gdb-5d901a7357a8f4099aa95a582c8113557c599389.zip gdb-5d901a7357a8f4099aa95a582c8113557c599389.tar.gz gdb-5d901a7357a8f4099aa95a582c8113557c599389.tar.bz2 |
* utils.c (report_command_stats): Don't print `-' for negative
number.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |