From ff94893edeabb948c3868f5cfb54d171b0cfcc0c Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 26 Nov 2004 15:54:53 +0000 Subject: wrap printf's in debug defines 2004-11-26 JP Rosevear * em-format.c: wrap printf's in debug defines svn path=/trunk/; revision=28003 --- mail/em-format.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mail/em-format.c') 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:""); + d(printf("content-base is '%s'\n", tmp?tmp:"")); 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; -- cgit v1.2.3