From: Stefan Weil via <qemu-devel@nongnu.org>
To: qemu-devel@nongnu.org, qemu-trivial@nongnu.org
Cc: "Stefan Hajnoczi" <stefanha@gmail.com>,
"Laurent Vivier" <laurent@vivier.eu>,
"Stefan Weil" <sw@weilnetz.de>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: [PATCH v2 2/4] libvhost-user: Fix format strings
Date: Sat, 5 Nov 2022 11:24:46 +0100 [thread overview]
Message-ID: <20221105102448.436469-3-sw@weilnetz.de> (raw)
In-Reply-To: <20221105102448.436469-1-sw@weilnetz.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220422070144.1043697-3-sw@weilnetz.de>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
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 d9a6e3e556..d67953a1c3 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;
}
@@ -826,7 +826,7 @@ vu_rem_mem_reg(VuDev *dev, VhostUserMsg *vmsg) {
if (vmsg->size < VHOST_USER_MEM_REG_SIZE) {
vmsg_close_fds(vmsg);
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;
}
--
2.30.2
next prev parent reply other threads:[~2022-11-05 10:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-05 10:24 [PATCH v2 for-7.2 0/4] libvhost-user: Add format attribute and fix format strings Stefan Weil via
2022-11-05 10:24 ` [PATCH v2 1/4] libvhost-user: Fix wrong type of argument to formatting function (reported by LGTM) Stefan Weil via
2022-11-05 10:24 ` Stefan Weil via [this message]
2022-11-05 10:24 ` [PATCH v2 3/4] libvhost-user: Fix two more format strings Stefan Weil via
2022-11-05 11:06 ` Stefan Weil via
2022-11-15 7:25 ` [PATCH for-7.2 " Stefan Weil via
2022-11-23 6:35 ` Stefan Weil via
2022-11-23 6:49 ` Stefan Weil via
2022-11-23 6:52 ` Michael S. Tsirkin
2022-11-05 10:24 ` [PATCH v2 4/4] libvhost-user: Add format attribute to local function vu_panic Stefan Weil via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221105102448.436469-3-sw@weilnetz.de \
--to=qemu-devel@nongnu.org \
--cc=laurent@vivier.eu \
--cc=marcandre.lureau@redhat.com \
--cc=qemu-trivial@nongnu.org \
--cc=stefanha@gmail.com \
--cc=sw@weilnetz.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).