aboutsummaryrefslogtreecommitdiffstats
path: root/antispam-plugin.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-04-19 13:27:59 +0200
committerJohannes Berg <johannes@sipsolutions.net>2008-04-19 13:27:59 +0200
commit2c7f3b568203ee3010db95d6dd060ebaddfe5475 (patch)
tree05220cb95993e97f3550aecfa1b90ee4c12dd9ab /antispam-plugin.h
parent0ac5aca79054773d6c03bc7febc81e3f22d0292f (diff)
downloaddovecot-antispam-2c7f3b568203ee3010db95d6dd060ebaddfe5475.tar.gz
dovecot-antispam-2c7f3b568203ee3010db95d6dd060ebaddfe5475.tar.xz
dovecot-antispam-2c7f3b568203ee3010db95d6dd060ebaddfe5475.zip
add verbose debugging
Diffstat (limited to 'antispam-plugin.h')
-rw-r--r--antispam-plugin.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/antispam-plugin.h b/antispam-plugin.h
index 9869a14..8a7958d 100644
--- a/antispam-plugin.h
+++ b/antispam-plugin.h
@@ -39,7 +39,17 @@ int backend_commit(struct mailbox_transaction_context *ctx,
void debug(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
#else
static void debug(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
-static inline void debug(const char *fmt, ...)
+static inline void debug(const char *fmt __attribute__((unused)), ...)
+{
+}
+#endif
+
+#if defined(CONFIG_DEBUG) && defined(CONFIG_DEBUG_VERBOSE)
+/* bit of an ugly short-cut */
+#define debug_verbose debug
+#else
+static void debug_verbose(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
+static inline void debug_verbose(const char *fmt __attribute__((unused)), ...)
{
}
#endif