diff src/getidblock.c @ 146:0695de3b5a98 stable-0-6-29

fix for 64bit on Fedora 11
author Carl Byington <carl@five-ten-sg.com>
date Tue, 24 Feb 2009 15:32:56 -0800
parents fdc58ad2c758
children f9773b6368e0
line wrap: on
line diff
--- a/src/getidblock.c	Tue Feb 24 13:18:46 2009 -0800
+++ b/src/getidblock.c	Tue Feb 24 15:32:56 2009 -0800
@@ -36,13 +36,13 @@
             DIE(("Error decrypting block\n"));
         }
 
-    DEBUG_MAIN(("Printing block id %#"PRIx64", size %#x\n", id, readSize));
+    DEBUG_MAIN(("Printing block id %#"PRIx64", size %#"PRIx64"\n", id, (uint64_t)readSize));
     if (binary) {
         if (fwrite(buf, 1, readSize, stdout) != 0) {
             DIE(("Error occured during writing of buf to stdout\n"));
         }
     } else {
-        printf("Block id %#"PRIx64", size %#x\n", id, readSize);
+        printf("Block id %#"PRIx64", size %#"PRIx64"\n", id, (uint64_t)readSize);
         pst_debug_hexdumper(stdout, buf, readSize, 0x10, 0);
     }
     if (buf) free(buf);