comparison src/readpst.c @ 266:3f323c867cb4

adding more debug code
author Carl Byington <carl@five-ten-sg.com>
date Sun, 17 Apr 2011 16:31:10 -0700
parents 52c3d02e9df8
children ebcfb23390a4
comparison
equal deleted inserted replaced
265:191c1a7e769e 266:3f323c867cb4
953 // If there is a long filename (filename2) use that, otherwise 953 // If there is a long filename (filename2) use that, otherwise
954 // use the 8.3 filename (filename1) 954 // use the 8.3 filename (filename1)
955 char *attach_filename = (attach->filename2.str) ? attach->filename2.str 955 char *attach_filename = (attach->filename2.str) ? attach->filename2.str
956 : attach->filename1.str; 956 : attach->filename1.str;
957 DEBUG_ENT("write_separate_attachment"); 957 DEBUG_ENT("write_separate_attachment");
958 DEBUG_INFO(("Attachment %s Size is %"PRIx64", data = %"PRIxPTR", id %#"PRIx64"\n", attach_filename, (uint64_t)attach->data.size, attach->data.data, attach->i_id)); 958 DEBUG_INFO(("Attachment %s Size is %#"PRIx64", data = %#"PRIxPTR", id %#"PRIx64"\n", attach_filename, (uint64_t)attach->data.size, attach->data.data, attach->i_id));
959 959
960 if (!attach->data.data) { 960 if (!attach->data.data) {
961 // make sure we can fetch data from the id 961 // make sure we can fetch data from the id
962 pst_index_ll *ptr = pst_getID(pst, attach->i_id); 962 pst_index_ll *ptr = pst_getID(pst, attach->i_id);
963 if (!ptr) { 963 if (!ptr) {
1040 } 1040 }
1041 1041
1042 1042
1043 void write_inline_attachment(FILE* f_output, pst_item_attach* attach, char *boundary, pst_file* pst) 1043 void write_inline_attachment(FILE* f_output, pst_item_attach* attach, char *boundary, pst_file* pst)
1044 { 1044 {
1045 char *attach_filename;
1046 DEBUG_ENT("write_inline_attachment"); 1045 DEBUG_ENT("write_inline_attachment");
1047 DEBUG_INFO(("Attachment Size is %"PRIx64", data = %"PRIxPTR", id %#"PRIx64"\n", (uint64_t)attach->data.size, attach->data.data, attach->i_id)); 1046 DEBUG_INFO(("Attachment Size is %#"PRIx64", data = %#"PRIxPTR", id %#"PRIx64"\n", (uint64_t)attach->data.size, attach->data.data, attach->i_id));
1048 1047
1049 if (!attach->data.data) { 1048 if (!attach->data.data) {
1050 // make sure we can fetch data from the id 1049 // make sure we can fetch data from the id
1051 pst_index_ll *ptr = pst_getID(pst, attach->i_id); 1050 pst_index_ll *ptr = pst_getID(pst, attach->i_id);
1052 if (!ptr) { 1051 if (!ptr) {