* [Qemu-devel] [PATCH] fix format string warning in block-vmdk.c
@ 2008-09-28 12:19 Jindrich Makovicka
0 siblings, 0 replies; only message in thread
From: Jindrich Makovicka @ 2008-09-28 12:19 UTC (permalink / raw)
To: qemu-devel
Hi,
total_size is an int64_t, so the format should be PRIi64.
Index: block-vmdk.c
===================================================================
--- block-vmdk.c (revision 5338)
+++ block-vmdk.c (working copy)
@@ -716,7 +716,7 @@
"#DDB\n"
"\n"
"ddb.virtualHWVersion = \"%d\"\n"
- "ddb.geometry.cylinders = \"%lu\"\n"
+ "ddb.geometry.cylinders = \"%" PRIi64 "\"\n"
"ddb.geometry.heads = \"16\"\n"
"ddb.geometry.sectors = \"63\"\n"
"ddb.adapterType = \"ide\"\n";
Regards,
--
Jindrich Makovicka
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-28 12:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-28 12:19 [Qemu-devel] [PATCH] fix format string warning in block-vmdk.c Jindrich Makovicka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).