From 3da4bc4f319a6728f206b13929852809def4376d Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Tue, 17 May 2011 21:26:28 +0000 Subject: [PATCH] * utils.c (report_command_stats): Don't print `-' for negative number. --- gdb/ChangeLog | 5 +++++ gdb/utils.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) 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 } -- 2.47.2