diff options
-rw-r--r-- | camel/ChangeLog | 2 | ||||
-rw-r--r-- | camel/providers/imap/camel-imap-utils.c | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index a8a4961d01..d7414ddaf2 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,7 @@ 2003-04-22 Jeffrey Stedfast <fejj@ximian.com> + * providers/imap/camel-imap-utils.c: Disable debugging printfs. + * providers/imap/camel-imap-store.c (imap_connect_online): #if 0 out some code that parsed the namespaces since the results aren't used and they generate debugging output. diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c index 59977e2e69..65819475fb 100644 --- a/camel/providers/imap/camel-imap-utils.c +++ b/camel/providers/imap/camel-imap-utils.c @@ -38,7 +38,7 @@ #include "string-utils.h" #include "camel-utf8.h" -#define d(x) x +#define d(x) const char * imap_next_word (const char *buf) @@ -191,6 +191,7 @@ imap_namespace_decode (const char **in, struct _namespace **namespace) return FALSE; } +#if d(!)0 static void namespace_dump (struct _namespace *namespace) { @@ -228,6 +229,7 @@ namespaces_dump (struct _namespaces *namespaces) namespace_dump (namespaces->shared); printf ("\n"); } +#endif struct _namespaces * imap_parse_namespace_response (const char *response) @@ -235,7 +237,7 @@ imap_parse_namespace_response (const char *response) struct _namespaces *namespaces; const char *inptr; - printf ("parsing: %s\n", response); + d(printf ("parsing: %s\n", response)); if (*response != '*') return NULL; @@ -272,7 +274,7 @@ imap_parse_namespace_response (const char *response) if (!imap_namespace_decode (&inptr, &namespaces->shared)) goto exception; - namespaces_dump (namespaces); + d(namespaces_dump (namespaces)); return namespaces; |