Commit 81442192975a7badff6c8abcd7c800ef4c552470

Authored by ths
1 parent 475d9110

Silence compiler warnings.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3058 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
block-vmdk.c
... ... @@ -572,7 +572,7 @@ static uint64_t get_cluster_offset(BlockDriverState *bs, VmdkMetaData *m_data,
572 572 if (!s->is_parent) {
573 573 status = stat(s->hd->filename, &file_buf);
574 574 if (status == -1) {
575   - fprintf(stderr, "(VMDK) Fail file stat: filename =%s size=0x%lx errno=%s\n",
  575 + fprintf(stderr, "(VMDK) Fail file stat: filename =%s size=0x%llx errno=%s\n",
576 576 s->hd->filename, (uint64_t)file_buf.st_size, strerror(errno));
577 577 return 0;
578 578 }
... ... @@ -668,7 +668,7 @@ static int vmdk_write(BlockDriverState *bs, int64_t sector_num,
668 668  
669 669 if (sector_num > bs->total_sectors) {
670 670 fprintf(stderr,
671   - "(VMDK) Wrong offset: sector_num=0x%lx total_sectors=0x%lx\n",
  671 + "(VMDK) Wrong offset: sector_num=0x%llx total_sectors=0x%llx\n",
672 672 sector_num, bs->total_sectors);
673 673 return -1;
674 674 }
... ...