diff src/dupe.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/dupe.c	Wed Apr 23 23:52:20 2008 +0000
+++ b/src/dupe.c	Thu Apr 24 00:15:03 2008 +0000
@@ -965,7 +965,7 @@
 		GList *work;
 		gdouble rank;
 
-		DEBUG_2("link found %s to %s [%d]\n", child->fd->name, parent->fd->name, g_list_length(parent->group));
+		DEBUG_2("link found %s to %s [%d]", child->fd->name, parent->fd->name, g_list_length(parent->group));
 
 		work = parent->group;
 		while (work)
@@ -994,7 +994,7 @@
 		}
 	else
 		{
-		DEBUG_2("unlinking %s and %s\n", child->fd->name, parent->fd->name);
+		DEBUG_2("unlinking %s and %s", child->fd->name, parent->fd->name);
 
 		dupe_match_unlink(child, parent);
 		}
@@ -1099,9 +1099,9 @@
 
 	if (debug >= 2) dupe_match_print_list(list);
 
-	DEBUG_1("Similar items: %d\n", g_list_length(list));
+	DEBUG_1("Similar items: %d", g_list_length(list));
 	list = dupe_match_group_trim(list, dw);
-	DEBUG_1("Unique groups: %d\n", g_list_length(list));
+	DEBUG_1("Unique groups: %d", g_list_length(list));
 
 	dupe_match_sort_groups(list);
 
@@ -1185,7 +1185,7 @@
 
 		if (f < m) return FALSE;
 
-		DEBUG_3("similar: %32s %32s = %f\n", a->fd->name, b->fd->name, f);
+		DEBUG_3("similar: %32s %32s = %f", a->fd->name, b->fd->name, f);
 		}
 
 	return TRUE;
@@ -1340,7 +1340,7 @@
 	if (!thumb_loader_start(dw->thumb_loader, di->fd->path))
 		{
 		/* error, handle it, do next */
-		DEBUG_1("error loading thumb for %s\n", di->fd->path);
+		DEBUG_1("error loading thumb for %s", di->fd->path);
 		dupe_thumb_do(dw);
 		dupe_thumb_step(dw);
 		}