diff options
author | Radek Doulik <rodo@novell.com> | 2005-02-15 19:15:29 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2005-02-15 19:15:29 +0800 |
commit | 78d23b7801cae4f01216f7dd0c74a396fb31df5d (patch) | |
tree | 0c280b224fdc31bce3d95dd0e8e3951509a9c7d6 | |
parent | 730236e4c0f467c496a0aa08166e477b30a39cd5 (diff) | |
download | gsoc2013-evolution-78d23b7801cae4f01216f7dd0c74a396fb31df5d.tar gsoc2013-evolution-78d23b7801cae4f01216f7dd0c74a396fb31df5d.tar.gz gsoc2013-evolution-78d23b7801cae4f01216f7dd0c74a396fb31df5d.tar.bz2 gsoc2013-evolution-78d23b7801cae4f01216f7dd0c74a396fb31df5d.tar.lz gsoc2013-evolution-78d23b7801cae4f01216f7dd0c74a396fb31df5d.tar.xz gsoc2013-evolution-78d23b7801cae4f01216f7dd0c74a396fb31df5d.tar.zst gsoc2013-evolution-78d23b7801cae4f01216f7dd0c74a396fb31df5d.zip |
use camel_debug
2005-02-15 Radek Doulik <rodo@novell.com>
* em-junk-filter.c: use camel_debug
svn path=/trunk/; revision=28797
-rw-r--r-- | mail/ChangeLog | 4 | ||||
-rw-r--r-- | mail/em-junk-filter.c | 9 |
2 files changed, 9 insertions, 4 deletions
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 <rodo@novell.com> + + * em-junk-filter.c: use camel_debug + 2005-02-10 Not Zed <NotZed@Ximian.com> ** 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 <signal.h> #include <time.h> +#include <camel/camel-debug.h> #include <camel/camel-file-utils.h> #include <camel/camel-data-wrapper.h> #include <camel/camel-stream-fs.h> @@ -48,7 +49,7 @@ #include <gconf/gconf-client.h> -#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) { |