# HG changeset patch # User Carl Byington # Date 1303082175 25200 # Node ID 52c3d02e9df80e1b2c416155820cffc7cf9607c5 # Parent 2b0498c17a2fff8391155fe586df7419c8888e48 adding more debug code diff -r 2b0498c17a2f -r 52c3d02e9df8 regression/regression-tests.bash --- a/regression/regression-tests.bash Sun Apr 17 15:53:29 2011 -0700 +++ b/regression/regression-tests.bash Sun Apr 17 16:16:15 2011 -0700 @@ -65,7 +65,7 @@ #$val ../src/readpst $jobs -te -r -D -cv -o output$n -d $ba.log $fn >$ba.err 2>&1 ## normal recursive dump - $val ../src/readpst -j 0 -r -cv -o output$n -d $ba.log $fn >$ba.err 2>&1 + $val ../src/readpst -j 0 -S -cv -o output$n -d $ba.log $fn >$ba.err 2>&1 ## separate mode with filename extensions #$val ../src/readpst $jobs -r -e -D -cv -o output$n -d $ba.log $fn >$ba.err 2>&1 diff -r 2b0498c17a2f -r 52c3d02e9df8 src/readpst.c --- a/src/readpst.c Sun Apr 17 15:53:29 2011 -0700 +++ b/src/readpst.c Sun Apr 17 16:16:15 2011 -0700 @@ -955,6 +955,7 @@ char *attach_filename = (attach->filename2.str) ? attach->filename2.str : attach->filename1.str; DEBUG_ENT("write_separate_attachment"); + 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)); if (!attach->data.data) { // make sure we can fetch data from the id @@ -1043,7 +1044,7 @@ { char *attach_filename; DEBUG_ENT("write_inline_attachment"); - DEBUG_INFO(("Attachment Size is %"PRIu64", data = %"PRIxPTR", id %#"PRIx64"\n", (uint64_t)attach->data.size, attach->data.data, attach->i_id)); + DEBUG_INFO(("Attachment Size is %"PRIx64", data = %"PRIxPTR", id %#"PRIx64"\n", (uint64_t)attach->data.size, attach->data.data, attach->i_id)); if (!attach->data.data) { // make sure we can fetch data from the id