From: Richard Jones Date: Thu, 21 Jan 2010 17:07:21 +0000 (+0000) Subject: hivex: Display incorrect block size as unsigned in an error message. X-Git-Tag: 1.0.82~4 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=c052b36385a56df3017b7e75a610add2b2cdea5a;p=libguestfs.git hivex: Display incorrect block size as unsigned in an error message. --- diff --git a/hivex/hivex.c b/hivex/hivex.c index 4e36dd4..81767ad 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 0x%zx, bad registry\n", + fprintf (stderr, "hivex: %s: block size %" PRIu32 " at 0x%zx, bad registry\n", filename, le32toh (block->seg_len), blkoff); errno = ENOTSUP; goto error;