]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
libvhost-user: Fix two more format strings
authorStefan Weil via <qemu-devel@nongnu.org>
Sat, 26 Nov 2022 15:25:04 +0000 (16:25 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Sun, 27 Nov 2022 18:33:58 +0000 (13:33 -0500)
This fix is required for 32 bit hosts. The bug was detected by CI
for arm-linux, but is also relevant for i386-linux.

Reported-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20221126152507.283271-4-sw@weilnetz.de>

subprojects/libvhost-user/libvhost-user.c

index d67953a1c39cb9d8b2edb2d9b0c4a9e5c89d2be2..80f9952e71d4a78586d7f1f4c34d80e11d0e3291 100644 (file)
@@ -651,7 +651,8 @@ generate_faults(VuDev *dev) {
 
         if (ioctl(dev->postcopy_ufd, UFFDIO_REGISTER, &reg_struct)) {
             vu_panic(dev, "%s: Failed to userfault region %d "
-                          "@%" PRIx64 " + size:%zx offset: %zx: (ufd=%d)%s\n",
+                          "@%" PRIx64 " + size:%" PRIx64 " offset: %" PRIx64
+                          ": (ufd=%d)%s\n",
                      __func__, i,
                      dev_region->mmap_addr,
                      dev_region->size, dev_region->mmap_offset,