diff src/cache.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/cache.c	Wed Apr 23 23:52:20 2008 +0000
+++ b/src/cache.c	Thu Apr 24 00:15:03 2008 +0000
@@ -457,7 +457,7 @@
 	if (fread(&buf, sizeof(char), 9, f) != 9 ||
 	    strncmp(buf, "SIMcache", 8) != 0)
 		{
-		DEBUG_1("%s is not a cache file\n", cd->path);
+		DEBUG_1("%s is not a cache file", cd->path);
 		success = 0;
 		}
 
@@ -601,7 +601,7 @@
 					}
 				if (!isdir(path))
 					{
-					DEBUG_1("creating sub dir:%s\n", path);
+					DEBUG_1("creating sub dir:%s", path);
 					if (!mkdir_utf8(path, mode))
 						{
 						printf("create dir failed: %s\n", path);
@@ -770,7 +770,7 @@
 			if (utime(cachel, &ut) < 0 &&
 			    errno == EPERM)
 				{
-				DEBUG_1("cache permission workaround: %s\n", cachel);
+				DEBUG_1("cache permission workaround: %s", cachel);
 				ret = TRUE;
 				}
 			}