From: Stefan Weil Date: Thu, 17 Jan 2013 20:45:26 +0000 (+0100) Subject: block/vdi: Improve debug output for signature X-Git-Tag: v1.4.0-rc0~76^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f0470bb2d7942c28977296ff2598cdf30886e07;p=thirdparty%2Fqemu.git block/vdi: Improve debug output for signature The signature is a 32 bit value and needs up to 8 hex digits for printing. Signed-off-by: Stefan Weil Reviewed-by: Eric Blake Signed-off-by: Kevin Wolf --- diff --git a/block/vdi.c b/block/vdi.c index 021abaa2273..0e1ed617f35 100644 --- a/block/vdi.c +++ b/block/vdi.c @@ -246,7 +246,7 @@ static void vdi_header_print(VdiHeader *header) { char uuid[37]; logout("text %s", header->text); - logout("signature 0x%04x\n", header->signature); + logout("signature 0x%08x\n", header->signature); logout("header size 0x%04x\n", header->header_size); logout("image type 0x%04x\n", header->image_type); logout("image flags 0x%04x\n", header->image_flags);