This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ob] "maint space" cosmetic fix


Noticed this while working on the dwarf2 memory leak I fixed
yesterday.  It was printing a double minus sign; space_diff
is already signed.

Checked in.

-- 
Daniel Jacobowitz
CodeSourcery

2007-10-22  Daniel Jacobowitz  <dan@codesourcery.com>

	* top.c (command_loop): Fix output for shrinkage.

Index: top.c
===================================================================
RCS file: /cvs/src/src/gdb/top.c,v
retrieving revision 1.125
diff -u -p -r1.125 top.c
--- top.c	2 Sep 2007 21:13:56 -0000	1.125
+++ top.c	22 Oct 2007 16:10:09 -0000
@@ -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
 	}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]