[evolution-data-server] camel_imapx_debug() cleanups.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] camel_imapx_debug() cleanups.
- Date: Thu, 2 May 2013 21:45:20 +0000 (UTC)
commit 3fbf3f2e9347643e7e72fc8e66895cd974c11f7c
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu May 2 17:38:25 2013 -0400
camel_imapx_debug() cleanups.
camel/camel-imapx-utils.h | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/camel/camel-imapx-utils.h b/camel/camel-imapx-utils.h
index 7d32880..0adbf8e 100644
--- a/camel/camel-imapx-utils.h
+++ b/camel/camel-imapx-utils.h
@@ -374,10 +374,12 @@ extern gint camel_imapx_debug_flags;
#define camel_debug_flag(type) \
(camel_imapx_debug_flags & \
CAMEL_IMAPX_DEBUG_ALL & CAMEL_IMAPX_DEBUG_ ## type)
-#define camel_imapx_debug(type, tagprefix, fmt, ...) do { \
- if (camel_debug_flag (type)) \
+#define camel_imapx_debug(type, tagprefix, fmt, ...) \
+ G_STMT_START { \
+ if (camel_debug_flag (type)) { \
printf ("[imapx:%c] " fmt, tagprefix , ##__VA_ARGS__); \
- } while (0)
+ } \
+ } G_STMT_END
/* ********************************************************************** */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]