From: Tom Tromey Date: Fri, 1 Apr 2011 17:20:42 +0000 (+0000) Subject: * utils.c (report_command_stats): Don't print `-' for negative X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d901a7357a8f4099aa95a582c8113557c599389;p=binutils-gdb.git * utils.c (report_command_stats): Don't print `-' for negative number. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9b9f4319e34..e8607df8b92 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-04-01 Tom Tromey + + * utils.c (report_command_stats): Don't print `-' for negative + number. + 2011-04-01 Eric Botcazou * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr) diff --git a/gdb/utils.c b/gdb/utils.c index 496c9dca29c..51d32b70589 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 }