diff src/libpst.c @ 58:a8b772313ff4

fixup debug messages #llx rather than #x, fix 7c block documentation to match code
author Carl Byington <carl@five-ten-sg.com>
date Wed, 06 Feb 2008 23:05:56 -0800
parents 034641c26ab9
children 7d5c637aaafb
line wrap: on
line diff
--- a/src/libpst.c	Sat Feb 02 12:54:07 2008 -0800
+++ b/src/libpst.c	Wed Feb 06 23:05:56 2008 -0800
@@ -1496,7 +1496,7 @@
         }
 
         if (pst_getBlockOffsetPointer(pf, i2_head, &subblocks, table_rec.value, &block_offset5)) {
-            DEBUG_WARN(("internal error (7c.5b.desc offset %#x) in reading block id %#llx\n", table_rec.value, block_id));
+            DEBUG_WARN(("internal error (7c.b5.desc offset %#x) in reading block id %#llx\n", table_rec.value, block_id));
             freeall(&subblocks, &block_offset1, &block_offset2, &block_offset3, &block_offset4, &block_offset5, &block_offset6, &block_offset7);
             DEBUG_RET();
             return NULL;
@@ -4143,7 +4143,7 @@
 size_t pst_read_block_size(pst_file *pf, off_t offset, size_t size, char **buf) {
     size_t rsize;
     DEBUG_ENT("pst_read_block_size");
-    DEBUG_READ(("Reading block from %#x, %i bytes\n", offset, size));
+    DEBUG_READ(("Reading block from %#llx, %x bytes\n", offset, size));
 
     if (*buf) {
         DEBUG_READ(("Freeing old memory\n"));
@@ -4155,7 +4155,7 @@
     if (rsize != size) {
         DEBUG_WARN(("Didn't read all the data. fread returned less [%i instead of %i]\n", rsize, size));
         if (feof(pf->fp)) {
-            DEBUG_WARN(("We tried to read past the end of the file at [offset %#x, size %#x]\n", offset, size));
+            DEBUG_WARN(("We tried to read past the end of the file at [offset %#llx, size %#x]\n", offset, size));
         } else if (ferror(pf->fp)) {
             DEBUG_WARN(("Error is set on file stream.\n"));
         } else {