* top.c (command_loop): Fix output for shrinkage.
authorDaniel Jacobowitz <drow@false.org>
Mon, 22 Oct 2007 16:11:13 +0000 (16:11 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 22 Oct 2007 16:11:13 +0000 (16:11 +0000)
gdb/ChangeLog
gdb/top.c

index 9ee7a1be5647897d72f7f53a15f646de136d86cd..46275186b6f86fd30ed33f4aba1d727f84bbc2c2 100644 (file)
@@ -1,3 +1,7 @@
+2007-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * top.c (command_loop): Fix output for shrinkage.
+
 2007-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
index 80476bd9e13f696fd4a4698b9baa617b6c74ca69..beb1d9666f05f52e8b37d081b79cd0c410b9a6f7 100644 (file)
--- 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
        }