[Libguestfs] [PATCH 11/13] hivex: display bad block offset in hex
Richard W.M. Jones
rjones at redhat.com
Thu Jan 28 10:20:40 UTC 2010
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
-------------- next part --------------
>From 3a58f3145b6b966ab65fdbc57211d630d8b82005 Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones at redhat.com>
Date: Thu, 21 Jan 2010 16:19:49 +0000
Subject: [PATCH 11/13] hivex: display bad block offset in hex
---
hivex/hivex.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hivex/hivex.c b/hivex/hivex.c
index 4fe8175..1eadee3 100644
--- a/hivex/hivex.c
+++ b/hivex/hivex.c
@@ -459,7 +459,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;
--
1.6.5.2
More information about the Libguestfs
mailing list