From: Joel Brobecker Date: Tue, 17 May 2011 21:26:28 +0000 (+0000) Subject: * utils.c (report_command_stats): Don't print `-' for negative X-Git-Tag: gdb_7_3-2011-07-26-release~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3da4bc4f319a6728f206b13929852809def4376d;p=thirdparty%2Fbinutils-gdb.git * utils.c (report_command_stats): Don't print `-' for negative number. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7ddb55f033d..e4894c7d0c7 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 }