libvhost-user: fix -Werror=format= on ppc64
commit7fa9f0388ca7270ae4267f305a2fa384c4252170
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 14 May 2019 10:41:25 +0000 (14 12:41 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 22 May 2019 05:16:17 +0000 (22 07:16 +0200)
tree09daa780a5c657ac4eed69edb25262a3d0a3ea36
parent1005810b8ae92e0110aae123ee0a91b0a6717343
libvhost-user: fix -Werror=format= on ppc64

That should fix the following warning:

/home/pm215/qemu/contrib/libvhost-user/libvhost-user.c: In function
‘vu_set_mem_table_exec_postcopy’:
/home/pm215/qemu/contrib/libvhost-user/libvhost-user.c:666:9: error:
format ‘%llx’ expects argument of type ‘long long unsigned int’, but
argument 5 has type ‘__u64’ [-Werror=format=]
         DPRINT("%s: region %d: Registered userfault for %llx + %llx\n",
         ^
/home/pm215/qemu/contrib/libvhost-user/libvhost-user.c:666:9: error:
format ‘%llx’ expects argument of type ‘long long unsigned int’, but
argument 6 has type ‘__u64’ [-Werror=format=]
cc1: all warnings being treated as errors

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190514104126.6294-3-marcandre.lureau@redhat.com

{ kraxel: s/PRIu64/PRIx64/ ]

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
contrib/libvhost-user/libvhost-user.c