diff src/collect.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 c7a2471e5c4e
children 135570a8bd96
line wrap: on
line diff
--- a/src/collect.c	Wed Apr 23 23:52:20 2008 +0000
+++ b/src/collect.c	Thu Apr 24 00:15:03 2008 +0000
@@ -365,7 +365,7 @@
 {
 	if (!cd) return;
 
-	DEBUG_1("collection \"%s\" freed\n", cd->name);
+	DEBUG_1("collection \"%s\" freed", cd->name);
 
 	collection_load_stop(cd);
 	collection_list_free(cd->list);
@@ -384,14 +384,14 @@
 {
 	cd->ref++;
 
-	DEBUG_1("collection \"%s\" ref count = %d\n", cd->name, cd->ref);
+	DEBUG_1("collection \"%s\" ref count = %d", cd->name, cd->ref);
 }
 
 void collection_unref(CollectionData *cd)
 {
 	cd->ref--;
 
-	DEBUG_1("collection \"%s\" ref count = %d\n", cd->name, cd->ref);
+	DEBUG_1("collection \"%s\" ref count = %d", cd->name, cd->ref);
 
 	if (cd->ref < 1)
 		{
@@ -624,7 +624,7 @@
 
 		ci = collection_info_new_if_not_exists(cd, &st, fd);
 		if (!ci) return FALSE;
-		DEBUG_3("add to collection: %s\n", fd->path);
+		DEBUG_3("add to collection: %s", fd->path);
 
 		cd->list = collection_list_add(cd->list, ci, sorted ? cd->sort_method : SORT_NONE);
 		cd->changed = TRUE;
@@ -660,7 +660,7 @@
 		ci = collection_info_new_if_not_exists(cd, &st, fd);
 		if (!ci) return FALSE;
 
-		DEBUG_3("insert in collection: %s\n", fd->path);
+		DEBUG_3("insert in collection: %s", fd->path);
 
 		cd->list = collection_list_insert(cd->list, ci, insert_ci, sorted ? cd->sort_method : SORT_NONE);
 		cd->changed = TRUE;