diff options
author | 9 <NotZed@Ximian.com> | 2001-09-19 16:28:36 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-09-19 16:28:36 +0800 |
commit | bef39dc4e0bbdb334fef71f973bcb7781dce65df (patch) | |
tree | fbb2c1a5fc3d24232d34dbce01edd587e8b84002 /camel/camel-session.c | |
parent | d9775521cad4588963b2edb297551c85fae1459f (diff) | |
download | gsoc2013-evolution-bef39dc4e0bbdb334fef71f973bcb7781dce65df.tar gsoc2013-evolution-bef39dc4e0bbdb334fef71f973bcb7781dce65df.tar.gz gsoc2013-evolution-bef39dc4e0bbdb334fef71f973bcb7781dce65df.tar.bz2 gsoc2013-evolution-bef39dc4e0bbdb334fef71f973bcb7781dce65df.tar.lz gsoc2013-evolution-bef39dc4e0bbdb334fef71f973bcb7781dce65df.tar.xz gsoc2013-evolution-bef39dc4e0bbdb334fef71f973bcb7781dce65df.tar.zst gsoc2013-evolution-bef39dc4e0bbdb334fef71f973bcb7781dce65df.zip |
General cleanup of camel debug printfs.
2001-09-19 <NotZed@Ximian.com>
* 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
Diffstat (limited to 'camel/camel-session.c')
-rw-r--r-- | camel/camel-session.c | 12 |
1 files changed, 7 insertions, 5 deletions
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); } |