From 78d23b7801cae4f01216f7dd0c74a396fb31df5d Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Tue, 15 Feb 2005 11:15:29 +0000 Subject: use camel_debug 2005-02-15 Radek Doulik * em-junk-filter.c: use camel_debug svn path=/trunk/; revision=28797 --- mail/ChangeLog | 4 ++++ mail/em-junk-filter.c | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 873ec617a9..b4c9f43a27 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,7 @@ +2005-02-15 Radek Doulik + + * em-junk-filter.c: use camel_debug + 2005-02-10 Not Zed ** See bug #72266 diff --git a/mail/em-junk-filter.c b/mail/em-junk-filter.c index f9b74a8c0c..78fe042fdb 100644 --- a/mail/em-junk-filter.c +++ b/mail/em-junk-filter.c @@ -36,6 +36,7 @@ #include #include +#include #include #include #include @@ -48,7 +49,7 @@ #include -#define d(x) x +#define d(x) (camel_debug("junk")?(x):0) static pthread_mutex_t em_junk_sa_init_lock = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t em_junk_sa_report_lock = PTHREAD_MUTEX_INITIALIZER; @@ -118,16 +119,16 @@ pipe_to_sa_full (CamelMimeMessage *msg, const char *in, char **argv, int rv_err, char *program; pid_t pid; -#if d(!)0 - { + + if (camel_debug_start ("junk")) { int i; printf ("pipe_to_sa "); for (i = 0; argv[i]; i++) printf ("%s ", argv[i]); printf ("\n"); + camel_debug_end (); } -#endif program = g_find_program_in_path (argv [0]); if (program == NULL) { -- cgit v1.2.3