diff src/collect-io.c @ 673:fbebf5cf4a55

Do not use printf() directly but use new wrapper function log_printf() instead.
author zas_
date Fri, 16 May 2008 12:16:49 +0000
parents 8268cbe682f1
children a3218946bd2d
line wrap: on
line diff
--- a/src/collect-io.c	Fri May 16 12:08:51 2008 +0000
+++ b/src/collect-io.c	Fri May 16 12:16:49 2008 +0000
@@ -101,7 +101,7 @@
 	g_free(pathl);
 	if (!f)
 		{
-		printf("Failed to open collection file: \"%s\"\n", path);
+		log_printf("Failed to open collection file: \"%s\"\n", path);
 		return FALSE;
 		}
 
@@ -167,7 +167,7 @@
 				    fail > GQ_COLLECTION_FAIL_MIN &&
 				    fail * 100 / total > GQ_COLLECTION_FAIL_PERCENT)
 					{
-					printf("%d invalid filenames in unofficial collection file, closing: %s\n", fail, path);
+					log_printf("%d invalid filenames in unofficial collection file, closing: %s\n", fail, path);
 					success = FALSE;
 					break;
 					}
@@ -575,7 +575,7 @@
 		if (orig_action)
 			{
 			/* target already exists */
-			printf("collection manager failed to add another action for target %s in collection %s\n",
+			log_printf("collection manager failed to add another action for target %s in collection %s\n",
 				action->newpath, entry->path);
 			return;
 			}
@@ -616,7 +616,7 @@
 	if (orig_action)
 		{
 		/* another action for the same source, ignore */
-		printf("collection manager failed to add another action for source %s in collection %s\n",
+		log_printf("collection manager failed to add another action for source %s in collection %s\n",
 			action->oldpath, entry->path);
 		return;
 		}
@@ -763,7 +763,7 @@
 		if (action->type != COLLECTION_MANAGER_UPDATE &&
 		    action->oldpath && action->newpath)
 			{
-			printf("collection manager failed to %s %s for collection %s\n",
+			log_printf("collection manager failed to %s %s for collection %s\n",
 				(action->type == COLLECTION_MANAGER_ADD) ? "add" : "remove",
 				action->oldpath, action->newpath);
 			}