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/camel-session.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'camel/camel-session.c') diff --git a/camel/camel-session.c b/camel/camel-session.c index 06b7bb8799..7f7fbe7a59 100644 --- a/camel/camel-session.c +++ b/camel/camel-session.c @@ -45,6 +45,8 @@ #include "camel-private.h" +#define d(x) + #define CS_CLASS(so) CAMEL_SESSION_CLASS (CAMEL_OBJECT_GET_CLASS (so)) static void register_provider (CamelSession *session, CamelProvider *provider); @@ -733,14 +735,14 @@ static void session_thread_msg_free(CamelSession *session, CamelSessionThreadMsg { g_assert(msg->ops != NULL); - printf("free message %p session %p\n", msg, session); + d(printf("free message %p session %p\n", msg, session)); CAMEL_SESSION_LOCK(session, thread_lock); g_hash_table_remove(session->priv->thread_active, (void *)msg->id); CAMEL_SESSION_UNLOCK(session, thread_lock); - printf("free msg, ops->free = %p\n", msg->ops->free); - + d(printf("free msg, ops->free = %p\n", msg->ops->free)); + if (msg->ops->free) msg->ops->free(session, msg); g_free(msg); @@ -748,13 +750,13 @@ static void session_thread_msg_free(CamelSession *session, CamelSessionThreadMsg static void session_thread_destroy(EThread *thread, CamelSessionThreadMsg *msg, CamelSession *session) { - printf("destroy message %p session %p\n", msg, session); + d(printf("destroy message %p session %p\n", msg, session)); session_thread_msg_free(session, msg); } static void session_thread_received(EThread *thread, CamelSessionThreadMsg *msg, CamelSession *session) { - printf("receive message %p session %p\n", msg, session); + d(printf("receive message %p session %p\n", msg, session)); if (msg->ops->receive) msg->ops->receive(session, msg); } -- cgit v1.2.3