* [Qemu-devel] [5340] Fix warning, based on patches by Zeev Tarantov and Jindrich Makovicka
@ 2008-09-28 20:00 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-09-28 20:00 UTC (permalink / raw)
To: qemu-devel
Revision: 5340
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5340
Author: blueswir1
Date: 2008-09-28 20:00:14 +0000 (Sun, 28 Sep 2008)
Log Message:
-----------
Fix warning, based on patches by Zeev Tarantov and Jindrich Makovicka
Modified Paths:
--------------
trunk/block-vmdk.c
Modified: trunk/block-vmdk.c
===================================================================
--- trunk/block-vmdk.c 2008-09-28 18:55:17 UTC (rev 5339)
+++ trunk/block-vmdk.c 2008-09-28 20:00:14 UTC (rev 5340)
@@ -710,13 +710,13 @@
"createType=\"monolithicSparse\"\n"
"\n"
"# Extent description\n"
- "RW %lu SPARSE \"%s\"\n"
+ "RW %" PRId64 " SPARSE \"%s\"\n"
"\n"
"# The Disk Data Base \n"
"#DDB\n"
"\n"
"ddb.virtualHWVersion = \"%d\"\n"
- "ddb.geometry.cylinders = \"%lu\"\n"
+ "ddb.geometry.cylinders = \"%" PRId64 "\"\n"
"ddb.geometry.heads = \"16\"\n"
"ddb.geometry.sectors = \"63\"\n"
"ddb.adapterType = \"ide\"\n";
@@ -792,8 +792,9 @@
if ((temp_str = strrchr(real_filename, ':')) != NULL)
real_filename = temp_str + 1;
snprintf(desc, sizeof(desc), desc_template, (unsigned int)time(NULL),
- (unsigned long)total_size, real_filename,
- (flags & BLOCK_FLAG_COMPAT6 ? 6 : 4), total_size / (63 * 16));
+ total_size, real_filename,
+ (flags & BLOCK_FLAG_COMPAT6 ? 6 : 4),
+ total_size / (int64_t)(63 * 16));
/* write the descriptor */
lseek(fd, le64_to_cpu(header.desc_offset) << 9, SEEK_SET);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-28 20:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-28 20:00 [Qemu-devel] [5340] Fix warning, based on patches by Zeev Tarantov and Jindrich Makovicka Blue Swirl
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).