From: Srinivasa Ragavan Date: Wed, 10 Sep 2008 05:48:51 +0000 (+0000) Subject: Make it debuggable. X-Git-Tag: upstream/3.7.4~4547 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1de6b769874e47833b8a6f063f23654556057205;p=platform%2Fupstream%2Fevolution-data-server.git Make it debuggable. 2008-09-10 Srinivasa Ragavan * camel/camel-folder-search.c: Make it debuggable. svn path=/trunk/; revision=9508 --- diff --git a/camel/ChangeLog b/camel/ChangeLog index c47c777..4fbe9db 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,9 @@ 2008-09-10 Srinivasa Ragavan + * camel/camel-folder-search.c: Make it debuggable. + +2008-09-10 Srinivasa Ragavan + * camel/camel-db.c: Add bdata to index. 2008-09-08 Srinivasa Ragavan diff --git a/camel/camel-folder-search.c b/camel/camel-folder-search.c index d511b37..ff8c89d 100644 --- a/camel/camel-folder-search.c +++ b/camel/camel-folder-search.c @@ -47,6 +47,7 @@ #include "camel-search-private.h" #include "camel-stream-mem.h" #include "camel-db.h" +#include "camel-debug.h" #include "camel-store.h" #include "camel-vee-folder.h" #include "camel-string-utils.h" @@ -55,6 +56,7 @@ #define d(x) #define r(x) +#define dd(x) if (camel_debug("search")) x struct _CamelFolderSearchPrivate { CamelException *ex; @@ -483,7 +485,7 @@ camel_folder_search_search(CamelFolderSearch *search, const char *expr, GPtrArra /* Sync the db, so that we search the db for changes */ camel_folder_summary_save_to_db (search->folder->summary, ex); - d(printf ("sexp is : [%s]\n", expr)); + dd(printf ("sexp is : [%s]\n", expr)); if (g_getenv("SQL_SEARCH_OLD")) sql_query = camel_sexp_to_sql (expr); else @@ -492,7 +494,7 @@ camel_folder_search_search(CamelFolderSearch *search, const char *expr, GPtrArra tmp = g_strdup_printf ("SELECT uid FROM %s %s %s", tmp1, sql_query ? "WHERE":"", sql_query?sql_query:""); camel_db_free_sqlized_string (tmp1); g_free (sql_query); - d(printf("Equivalent sql %s\n", tmp)); + dd(printf("Equivalent sql %s\n", tmp)); matches = g_ptr_array_new(); cdb = (CamelDB *) (search->folder->cdb);