aboutsummaryrefslogtreecommitdiff
path: root/block-vmdk.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-11 10:25:58 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-11 10:25:58 +0000
commit81442192975a7badff6c8abcd7c800ef4c552470 (patch)
tree2eabd6a231f8690b0ba66ec5bc36c92f62382ad9 /block-vmdk.c
parent475d91106dc8553ec1f54f47c0a4565c358e559f (diff)
downloadqemu-81442192975a7badff6c8abcd7c800ef4c552470.zip
qemu-81442192975a7badff6c8abcd7c800ef4c552470.tar.gz
qemu-81442192975a7badff6c8abcd7c800ef4c552470.tar.bz2
Silence compiler warnings.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3058 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-vmdk.c')
-rw-r--r--block-vmdk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block-vmdk.c b/block-vmdk.c
index e595eab..0d3a804 100644
--- a/block-vmdk.c
+++ b/block-vmdk.c
@@ -572,7 +572,7 @@ static uint64_t get_cluster_offset(BlockDriverState *bs, VmdkMetaData *m_data,
if (!s->is_parent) {
status = stat(s->hd->filename, &file_buf);
if (status == -1) {
- fprintf(stderr, "(VMDK) Fail file stat: filename =%s size=0x%lx errno=%s\n",
+ fprintf(stderr, "(VMDK) Fail file stat: filename =%s size=0x%llx errno=%s\n",
s->hd->filename, (uint64_t)file_buf.st_size, strerror(errno));
return 0;
}
@@ -668,7 +668,7 @@ static int vmdk_write(BlockDriverState *bs, int64_t sector_num,
if (sector_num > bs->total_sectors) {
fprintf(stderr,
- "(VMDK) Wrong offset: sector_num=0x%lx total_sectors=0x%lx\n",
+ "(VMDK) Wrong offset: sector_num=0x%llx total_sectors=0x%llx\n",
sector_num, bs->total_sectors);
return -1;
}