diff src/collect-table.c @ 506:fc9c8a3e1a8b

Handle the newline in DEBUG_N() macro instead of adding one in each debug message string.
author zas_
date Thu, 24 Apr 2008 00:15:03 +0000
parents a33badd85f16
children 135570a8bd96
line wrap: on
line diff
--- a/src/collect-table.c	Wed Apr 23 23:52:20 2008 +0000
+++ b/src/collect-table.c	Thu Apr 24 00:15:03 2008 +0000
@@ -406,7 +406,7 @@
 		col2 = t;
 		}
 
-	DEBUG_1("table: %d x %d to %d x %d\n", row1, col1, row2, col2);
+	DEBUG_1("table: %d x %d to %d x %d", row1, col1, row2, col2);
 
 	for (i = row1; i <= row2; i++)
 		{
@@ -1652,7 +1652,7 @@
 
 	collection_table_populate(ct, TRUE);
 
-	DEBUG_1("col tab pop cols=%d rows=%d\n", ct->columns, ct->rows);
+	DEBUG_1("col tab pop cols=%d rows=%d", ct->columns, ct->rows);
 }
 
 static void collection_table_sync(CollectTable *ct)
@@ -2072,7 +2072,7 @@
 	CollectInfo *drop_info;
 	GList *work;
 
-	DEBUG_1("%s\n", selection_data->data);
+	DEBUG_1("%s", selection_data->data);
 
 	collection_table_scroll(ct, FALSE);
 	collection_table_insert_marker(ct, NULL, FALSE);