qemu-kvm: fix warnings on 32 bit systems
PATCH 1/1 qemu-kvm: fix warnings on 32 bit systems
size_t must be printed with %zd, not %ld.
long constants are UL, not ULL.
Signed-off-by Michael S. Tsirkin <[email protected]>
--- qemu-kvm.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
qemu-kvm.c +2 -2
@@ -523,7 +523,7 @@ static void sigfd_handler(void *opaque)break ;if (len !=sizeof (info)) { -printf ("read from sigfd returned %ld: %m\n" , len); +printf ("read from sigfd returned %zd: %m\n" , len);return ; }
@@ -1244,7 +1244,7 @@ int kvm_update_dirty_pages_log(void)int r =0 ; - r =kvm_get_dirty_pages_range (kvm_context,0 ,-1ULL , + r =kvm_get_dirty_pages_range (kvm_context,0 ,-1UL , kvm_dirty_bitmap,NULL , kvm_get_dirty_bitmap_cb);return r;
Signature · 1 line
1.6.3.rc3.1.g830204
Avi Kivity
AppliedQuoted 3 lines · Michael S. Tsirkin
size_tmust be printed with %zd, not %ld.
long constants are UL, not ULL.
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function