Skip to contentSkip to conversation

fix format string warning in block-vmdk.c

PATCH New Jindrich Makovicka 1 participant 1 message Sep 28, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix format string warning in block-vmdk.c

Hi,

total_size is an int64_t, so the format should be PRIi64.

block-vmdk.c (working copy) renamed from block-vmdk.c (revision 5338) +1 -1
Index: block-vmdk.c
===================================================================
@@ -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,

Signature · 1 line
Jindrich Makovicka