diff options
author | JP Rosevear <jpr@novell.com> | 2004-11-26 23:54:53 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-11-26 23:54:53 +0800 |
commit | ff94893edeabb948c3868f5cfb54d171b0cfcc0c (patch) | |
tree | 285d75251510e292a0c2611304eb58becc28a09d | |
parent | 869473d7f6d706fa6d3a2a3fd947b5cdfa85ee6c (diff) | |
download | gsoc2013-evolution-ff94893edeabb948c3868f5cfb54d171b0cfcc0c.tar gsoc2013-evolution-ff94893edeabb948c3868f5cfb54d171b0cfcc0c.tar.gz gsoc2013-evolution-ff94893edeabb948c3868f5cfb54d171b0cfcc0c.tar.bz2 gsoc2013-evolution-ff94893edeabb948c3868f5cfb54d171b0cfcc0c.tar.lz gsoc2013-evolution-ff94893edeabb948c3868f5cfb54d171b0cfcc0c.tar.xz gsoc2013-evolution-ff94893edeabb948c3868f5cfb54d171b0cfcc0c.tar.zst gsoc2013-evolution-ff94893edeabb948c3868f5cfb54d171b0cfcc0c.zip |
wrap printf's in debug defines
2004-11-26 JP Rosevear <jpr@novell.com>
* em-format.c: wrap printf's in debug defines
svn path=/trunk/; revision=28003
-rw-r--r-- | mail/ChangeLog | 4 | ||||
-rw-r--r-- | mail/em-format.c | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index cb2378250f..871ef4741b 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,9 @@ 2004-11-26 JP Rosevear <jpr@novell.com> + * em-format.c: wrap printf's in debug defines + +2004-11-26 JP Rosevear <jpr@novell.com> + * em-format-html-display.c (efhd_xpkcs7mime_button): get image widget directly from icon factory diff --git a/mail/em-format.c b/mail/em-format.c index 21b87d102c..db3983bb1a 100644 --- a/mail/em-format.c +++ b/mail/em-format.c @@ -216,7 +216,7 @@ em_format_get_type(void) void em_format_class_add_handler(EMFormatClass *emfc, EMFormatHandler *info) { - printf("adding format handler to '%s' '%s'\n", g_type_name_from_class((GTypeClass *)emfc), info->mime_type); + d(printf("adding format handler to '%s' '%s'\n", g_type_name_from_class((GTypeClass *)emfc), info->mime_type)); info->old = g_hash_table_lookup(emfc->type_handlers, info->mime_type); g_hash_table_insert(emfc->type_handlers, info->mime_type, info); } @@ -328,7 +328,7 @@ em_format_add_puri(EMFormat *emf, size_t size, const char *cid, CamelMimePart *p EMFormatPURI *puri; const char *tmp; - printf("adding puri for part: %s\n", emf->part_id->str); + d(printf("adding puri for part: %s\n", emf->part_id->str)); g_assert(size >= sizeof(*puri)); puri = g_malloc0(size); @@ -442,13 +442,13 @@ em_format_find_visible_puri(EMFormat *emf, const char *uri) EMFormatPURI *pw; struct _EMFormatPURITree *ptree; - (printf("checking for visible uri '%s'\n", uri)); + d(printf("checking for visible uri '%s'\n", uri)); ptree = emf->pending_uri_level; while (ptree) { pw = (EMFormatPURI *)ptree->uri_list.head; while (pw->next) { - (printf(" pw->uri = '%s' pw->cid = '%s\n", pw->uri?pw->uri:"", pw->cid)); + d(printf(" pw->uri = '%s' pw->cid = '%s\n", pw->uri?pw->uri:"", pw->cid)); if ((pw->uri && !strcmp(pw->uri, uri)) || !strcmp(pw->cid, uri)) return pw; pw = pw->next; @@ -559,7 +559,7 @@ em_format_part_as(EMFormat *emf, CamelStream *stream, CamelMimePart *part, const } else { tmp = basestr = camel_header_location_decode(tmp); } - printf("content-base is '%s'\n", tmp?tmp:"<unset>"); + d(printf("content-base is '%s'\n", tmp?tmp:"<unset>")); if (tmp && (base = camel_url_new(tmp, NULL))) { emf->base = base; @@ -1381,7 +1381,7 @@ emf_multipart_related(EMFormat *emf, CamelStream *stream, CamelMimePart *part, c g_string_printf(emf->part_id, "%s", puri->part_id); em_format_part(emf, stream, puri->part); } else - printf("unreferenced uri generated by format code: %s\n", puri->uri?puri->uri:puri->cid); + d(printf("unreferenced uri generated by format code: %s\n", puri->uri?puri->uri:puri->cid)); } puri = purin; purin = purin->next; |