evolution-data-server r9030 - branches/camel-db-summary/camel



Author: psankar
Date: Mon Jun 23 08:15:15 2008
New Revision: 9030
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9030&view=rev

Log:
Make debug statements optional.



Modified:
   branches/camel-db-summary/camel/camel-folder-summary.c

Modified: branches/camel-db-summary/camel/camel-folder-summary.c
==============================================================================
--- branches/camel-db-summary/camel/camel-folder-summary.c	(original)
+++ branches/camel-db-summary/camel/camel-folder-summary.c	Mon Jun 23 08:15:15 2008
@@ -659,7 +659,7 @@
 static void
 remove_item (char *key, CamelMessageInfo *info, CamelFolderSummary *s)
 {
-	printf("%d\t", info->refcount); //camel_message_info_dump (info);
+	d(printf("%d\t", info->refcount)); //camel_message_info_dump (info);
 	CAMEL_SUMMARY_LOCK(info->summary, ref_lock);
 	if (info->refcount == 1 && !info->dirty) {
 		CAMEL_SUMMARY_UNLOCK(info->summary, ref_lock);		
@@ -674,12 +674,12 @@
 remove_cache (CamelFolderSummary *s)
 {
 	struct _CamelFolderSummaryPrivate *p = _PRIVATE(s);
-	printf("removing cache for  %s %d\n", s->folder->full_name, g_hash_table_size (s->loaded_infos));
+	d(printf("removing cache for  %s %d\n", s->folder->full_name, g_hash_table_size (s->loaded_infos)));
 	#warning "hack. fix it"
 	CAMEL_SUMMARY_LOCK (s, summary_lock);
 	g_hash_table_foreach  (s->loaded_infos, remove_item, s);
 	CAMEL_SUMMARY_UNLOCK (s, summary_lock);
-	printf("done .. now %d\n",g_hash_table_size (s->loaded_infos));
+	d(printf("done .. now %d\n",g_hash_table_size (s->loaded_infos)));
 	return TRUE;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]