summaryrefslogtreecommitdiffstats
path: root/hivex/hivex.c
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-01-21 16:19:49 +0000
committerRichard Jones <rjones@redhat.com>2010-01-28 11:25:30 +0000
commitcb2ec65d5e4a4174b0f24635b971eeb2cdd964ff (patch)
treeee66acaf13da79592cdc297ff55edab3883b2de4 /hivex/hivex.c
parent203013dc166efb4067711baab59d3fe513c67921 (diff)
downloadlibguestfs-cb2ec65d5e4a4174b0f24635b971eeb2cdd964ff.tar.gz
libguestfs-cb2ec65d5e4a4174b0f24635b971eeb2cdd964ff.tar.xz
libguestfs-cb2ec65d5e4a4174b0f24635b971eeb2cdd964ff.zip
hivex: display bad block offset in hex
Diffstat (limited to 'hivex/hivex.c')
-rw-r--r--hivex/hivex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hivex/hivex.c b/hivex/hivex.c
index 73a21381..4e36dd48 100644
--- a/hivex/hivex.c
+++ b/hivex/hivex.c
@@ -442,7 +442,7 @@ hivex_open (const char *filename, int flags)
int used;
seg_len = block_len (h, blkoff, &used);
if (seg_len <= 4 || (seg_len & 3) != 0) {
- fprintf (stderr, "hivex: %s: block size %d at %zu, bad registry\n",
+ fprintf (stderr, "hivex: %s: block size %d at 0x%zx, bad registry\n",
filename, le32toh (block->seg_len), blkoff);
errno = ENOTSUP;
goto error;