comparison src/readpst.c @ 264:52c3d02e9df8

adding more debug code
author Carl Byington <carl@five-ten-sg.com>
date Sun, 17 Apr 2011 16:16:15 -0700
parents 41862bddcf63
children 3f323c867cb4
comparison
equal deleted inserted replaced
263:2b0498c17a2f 264:52c3d02e9df8
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 959
959 if (!attach->data.data) { 960 if (!attach->data.data) {
960 // make sure we can fetch data from the id 961 // make sure we can fetch data from the id
961 pst_index_ll *ptr = pst_getID(pst, attach->i_id); 962 pst_index_ll *ptr = pst_getID(pst, attach->i_id);
962 if (!ptr) { 963 if (!ptr) {
1041 1042
1042 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)
1043 { 1044 {
1044 char *attach_filename; 1045 char *attach_filename;
1045 DEBUG_ENT("write_inline_attachment"); 1046 DEBUG_ENT("write_inline_attachment");
1046 DEBUG_INFO(("Attachment Size is %"PRIu64", data = %"PRIxPTR", id %#"PRIx64"\n", (uint64_t)attach->data.size, attach->data.data, attach->i_id)); 1047 DEBUG_INFO(("Attachment Size is %"PRIx64", data = %"PRIxPTR", id %#"PRIx64"\n", (uint64_t)attach->data.size, attach->data.data, attach->i_id));
1047 1048
1048 if (!attach->data.data) { 1049 if (!attach->data.data) {
1049 // make sure we can fetch data from the id 1050 // make sure we can fetch data from the id
1050 pst_index_ll *ptr = pst_getID(pst, attach->i_id); 1051 pst_index_ll *ptr = pst_getID(pst, attach->i_id);
1051 if (!ptr) { 1052 if (!ptr) {