qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/3] libvhost-user: Fix format strings


From: Laurent Vivier
Subject: Re: [PATCH 2/3] libvhost-user: Fix format strings
Date: Wed, 2 Nov 2022 19:22:41 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1

Le 22/04/2022 à 09:01, Stefan Weil a écrit :
Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
  subprojects/libvhost-user/libvhost-user.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/subprojects/libvhost-user/libvhost-user.c 
b/subprojects/libvhost-user/libvhost-user.c
index 2d29140a8f..94645f9154 100644
--- a/subprojects/libvhost-user/libvhost-user.c
+++ b/subprojects/libvhost-user/libvhost-user.c
@@ -700,7 +700,7 @@ vu_add_mem_reg(VuDev *dev, VhostUserMsg *vmsg) {
      if (vmsg->size < VHOST_USER_MEM_REG_SIZE) {
          close(vmsg->fds[0]);
          vu_panic(dev, "VHOST_USER_ADD_MEM_REG requires a message size of at "
-                      "least %d bytes and only %d bytes were received",
+                      "least %zu bytes and only %d bytes were received",
                        VHOST_USER_MEM_REG_SIZE, vmsg->size);
          return false;
      }
@@ -833,7 +833,7 @@ vu_rem_mem_reg(VuDev *dev, VhostUserMsg *vmsg) {
      if (vmsg->size < VHOST_USER_MEM_REG_SIZE) {
          close(vmsg->fds[0]);
          vu_panic(dev, "VHOST_USER_REM_MEM_REG requires a message size of at "
-                      "least %d bytes and only %d bytes were received",
+                      "least %zu bytes and only %d bytes were received",
                        VHOST_USER_MEM_REG_SIZE, vmsg->size);
          return false;
      }

Applied to my trivial-patches branch.

Thanks,
Laurent




reply via email to

[Prev in Thread] Current Thread [Next in Thread]