comparison src/libpst.c @ 260:156cf548c764

adding more debug code
author Carl Byington <carl@five-ten-sg.com>
date Sun, 17 Apr 2011 14:07:25 -0700
parents c947b8812120
children 41862bddcf63
comparison
equal deleted inserted replaced
259:78e95fab9a8b 260:156cf548c764
1333 continue; 1333 continue;
1334 } 1334 }
1335 pst_free_list(list); 1335 pst_free_list(list);
1336 id2_ptr = pst_getID2(id2_head, attach->id2_val); 1336 id2_ptr = pst_getID2(id2_head, attach->id2_val);
1337 if (id2_ptr) { 1337 if (id2_ptr) {
1338 DEBUG_WARN(("second pass attachment updating id2 found i_id %#"PRIx64"\n", id2_ptr->id->i_id)); 1338 DEBUG_WARN(("second pass attachment updating id2 %#"PRIx64" found i_id %#"PRIx64"\n", attach->id2_val, id2_ptr->id->i_id));
1339 // id2_val has been updated to the ID2 value of the datablock containing the 1339 // i_id has been updated to the datablock containing the attachment data
1340 // attachment data
1341 attach->i_id = id2_ptr->id->i_id; 1340 attach->i_id = id2_ptr->id->i_id;
1342 attach->id2_head = deep_copy(id2_ptr->child); 1341 attach->id2_head = deep_copy(id2_ptr->child);
1342 DEBUG_WARN(("attachment size was %#"PRIx64", is now %#"PRIx64" based on size of i_id", attach->data.size, id2_ptr->id->size));
1343 attach->data.size = id2_ptr->id->size;
1343 } else { 1344 } else {
1344 DEBUG_WARN(("have not located the correct value for the attachment [%#"PRIx64"]\n", attach->id2_val)); 1345 DEBUG_WARN(("have not located the correct value for the attachment [%#"PRIx64"]\n", attach->id2_val));
1345 } 1346 }
1346 } else { 1347 } else {
1347 DEBUG_WARN(("ERROR cannot locate id2 value %#"PRIx64"\n", attach->id2_val)); 1348 DEBUG_WARN(("ERROR cannot locate id2 value %#"PRIx64"\n", attach->id2_val));
3987 ret = pst_ff_getIDblock_dec(pf, ptr->i_id, &b); 3988 ret = pst_ff_getIDblock_dec(pf, ptr->i_id, &b);
3988 ret = pst_append_holder(h, (size_t)0, &b, ret); 3989 ret = pst_append_holder(h, (size_t)0, &b, ret);
3989 free(b); 3990 free(b);
3990 } else { 3991 } else {
3991 // here we will assume it is an indirection block that points to others 3992 // here we will assume it is an indirection block that points to others
3992 DEBUG_INFO(("Assuming it is a multi-block record because of it's id\n")); 3993 DEBUG_INFO(("Assuming it is a multi-block record because of it's id %#"PRIx64"\n", ptr->i_id));
3993 ret = pst_ff_compile_ID(pf, ptr->i_id, h, (size_t)0); 3994 ret = pst_ff_compile_ID(pf, ptr->i_id, h, (size_t)0);
3994 } 3995 }
3995 ret = pst_finish_cleanup_holder(h, ret); 3996 ret = pst_finish_cleanup_holder(h, ret);
3996 DEBUG_RET(); 3997 DEBUG_RET();
3997 return ret; 3998 return ret;