Mercurial > libpst
diff 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 |
line wrap: on
line diff
--- a/src/libpst.c Sat Apr 16 10:31:32 2011 -0700 +++ b/src/libpst.c Sun Apr 17 14:07:25 2011 -0700 @@ -1335,11 +1335,12 @@ pst_free_list(list); id2_ptr = pst_getID2(id2_head, attach->id2_val); if (id2_ptr) { - DEBUG_WARN(("second pass attachment updating id2 found i_id %#"PRIx64"\n", id2_ptr->id->i_id)); - // id2_val has been updated to the ID2 value of the datablock containing the - // attachment data + DEBUG_WARN(("second pass attachment updating id2 %#"PRIx64" found i_id %#"PRIx64"\n", attach->id2_val, id2_ptr->id->i_id)); + // i_id has been updated to the datablock containing the attachment data attach->i_id = id2_ptr->id->i_id; attach->id2_head = deep_copy(id2_ptr->child); + DEBUG_WARN(("attachment size was %#"PRIx64", is now %#"PRIx64" based on size of i_id", attach->data.size, id2_ptr->id->size)); + attach->data.size = id2_ptr->id->size; } else { DEBUG_WARN(("have not located the correct value for the attachment [%#"PRIx64"]\n", attach->id2_val)); } @@ -3989,7 +3990,7 @@ free(b); } else { // here we will assume it is an indirection block that points to others - DEBUG_INFO(("Assuming it is a multi-block record because of it's id\n")); + DEBUG_INFO(("Assuming it is a multi-block record because of it's id %#"PRIx64"\n", ptr->i_id)); ret = pst_ff_compile_ID(pf, ptr->i_id, h, (size_t)0); } ret = pst_finish_cleanup_holder(h, ret);