From: Daniel Jacobowitz Date: Mon, 22 Oct 2007 16:11:13 +0000 (+0000) Subject: * top.c (command_loop): Fix output for shrinkage. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57ee890f2fcd47d6bafd57a60609dd372932f99b;p=binutils-gdb.git * top.c (command_loop): Fix output for shrinkage. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9ee7a1be564..46275186b6f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-10-22 Daniel Jacobowitz + + * top.c (command_loop): Fix output for shrinkage. + 2007-10-22 Daniel Jacobowitz * cp-name-parser.y (exp1): Add & ( var ) as a reference expression. diff --git a/gdb/top.c b/gdb/top.c index 80476bd9e13..beb1d9666f0 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -545,9 +545,9 @@ command_loop (void) long space_now = lim - lim_at_start; long space_diff = space_now - space_at_cmd_start; - printf_unfiltered (_("Space used: %ld (%c%ld for this command)\n"), + printf_unfiltered (_("Space used: %ld (%s%ld for this command)\n"), space_now, - (space_diff >= 0 ? '+' : '-'), + (space_diff >= 0 ? "+" : ""), space_diff); #endif }