From bef39dc4e0bbdb334fef71f973bcb7781dce65df Mon Sep 17 00:00:00 2001 From: 9 Date: Wed, 19 Sep 2001 08:28:36 +0000 Subject: General cleanup of camel debug printfs. 2001-09-19 * General cleanup of camel debug printfs. * camel-lock.c (camel_lock_fcntl): Changed to return 'success' if the error indicates file locking isn't supported on this filesystem. Still return a warning just incase (if its the first time). Might fix a lot of reported bugs. * providers/local/camel-spool-store.c (get_folder_info): Dont include the empty // host part in the uri. This 'breaks' the service lookup. svn path=/trunk/; revision=12973 --- camel/providers/local/camel-maildir-store.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'camel/providers/local/camel-maildir-store.c') diff --git a/camel/providers/local/camel-maildir-store.c b/camel/providers/local/camel-maildir-store.c index 927c194089..09188ad863 100644 --- a/camel/providers/local/camel-maildir-store.c +++ b/camel/providers/local/camel-maildir-store.c @@ -36,6 +36,8 @@ #include "camel-exception.h" #include "camel-url.h" +#define d(x) + static CamelLocalStoreClass *parent_class = NULL; /* Returns the class for a CamelMaildirStore */ @@ -245,7 +247,7 @@ static int scan_dir(GHashTable *visited, char *root, const char *path, guint32 f /* look for folders matching the right structure, recursively */ name = g_strdup_printf("%s/%s", root, path); - printf("checking dir '%s' part '%s' for maildir content\n", root, path); + d(printf("checking dir '%s' part '%s' for maildir content\n", root, path)); tmp = g_strdup_printf("%s/tmp", name); cur = g_strdup_printf("%s/cur", name); @@ -265,8 +267,8 @@ static int scan_dir(GHashTable *visited, char *root, const char *path, guint32 f base = path; fi = camel_folder_info_new(uri, path, base, -1); - printf("found! uri = %s\n", fi->url); - printf(" full_name = %s\n name = '%s'\n", fi->full_name, fi->name); + d(printf("found! uri = %s\n", fi->url)); + d(printf(" full_name = %s\n name = '%s'\n", fi->full_name, fi->name)); fi->parent = parent; fi->sibling = *fip; -- cgit v1.2.3