* utils.c (report_command_stats): Don't print `-' for negative

number.
This commit is contained in:
Tom Tromey 2011-04-01 17:20:42 +00:00
parent af57139d01
commit 5d901a7357
2 changed files with 8 additions and 3 deletions

View File

@ -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)

View File

@ -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
}