changeset 510:809bcb660781

Display file_data debug messages only at level 2.
author zas_
date Thu, 24 Apr 2008 09:50:37 +0000
parents b78a91d0779e
children e21da52016c8
files src/filelist.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/filelist.c	Thu Apr 24 09:43:23 2008 +0000
+++ b/src/filelist.c	Thu Apr 24 09:50:37 2008 +0000
@@ -768,7 +768,7 @@
 {
 	FileData *fd;
 
-	DEBUG_1("file_data_new: '%s' %d", path_utf8, check_sidecars);
+	DEBUG_2("file_data_new: '%s' %d", path_utf8, check_sidecars);
 
 	if (!file_data_pool)
 		file_data_pool = g_hash_table_new (g_str_hash, g_str_equal);
@@ -777,7 +777,7 @@
 	if (fd)
 		{
 		file_data_check_changed_files(fd, st);
-		DEBUG_1("file_data_pool hit: '%s'", fd->path);
+		DEBUG_2("file_data_pool hit: '%s'", fd->path);
 		return file_data_ref(fd);
 		}
 
@@ -931,7 +931,7 @@
 	g_assert(fd->magick == 0x12345678);
 
 	fd->ref--;
-	DEBUG_1("file_data_unref (%d): '%s'", fd->ref, fd->path);
+	DEBUG_2("file_data_unref (%d): '%s'", fd->ref, fd->path);
 
 	if (fd->ref == 0)
 		{
@@ -953,7 +953,7 @@
 
 		/* none of parent/children is referenced, we can free everything */
 
-		DEBUG_1("file_data_unref: deleting '%s', parent '%s'", fd->path, parent->path);
+		DEBUG_2("file_data_unref: deleting '%s', parent '%s'", fd->path, parent->path);
 
 		work = parent->sidecar_files;
 		while (work)