From: Markus Armbruster <armbru@redhat.com>
To: qemu-devel@nongnu.org
Cc: gaosong@loongson.cn, vladislav.yaroshchuk@jetbrains.com
Subject: [PATCH] error: Strip trailing '\n' from an error string argument
Date: Wed, 12 Mar 2025 15:35:04 +0100 [thread overview]
Message-ID: <20250312143504.1659061-1-armbru@redhat.com> (raw)
Tracked down with scripts/coccinelle/err-bad-newline.cocci.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
net/vmnet-common.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/vmnet-common.m b/net/vmnet-common.m
index 54d900ba67..ab33ce2b0c 100644
--- a/net/vmnet-common.m
+++ b/net/vmnet-common.m
@@ -94,7 +94,7 @@ ssize_t vmnet_receive_common(NetClientState *nc,
if_status = vmnet_write(s->vmnet_if, &packet, &pkt_cnt);
if (if_status != VMNET_SUCCESS) {
- error_report("vmnet: write error: %s\n",
+ error_report("vmnet: write error: %s",
vmnet_status_map_str(if_status));
return -1;
}
--
2.48.1
next reply other threads:[~2025-03-12 14:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-12 14:35 Markus Armbruster [this message]
2025-03-12 14:50 ` [PATCH] error: Strip trailing '\n' from an error string argument Peter Maydell
2025-03-12 19:08 ` Philippe Mathieu-Daudé
2025-03-13 9:03 ` gaosong
2025-03-19 8:37 ` Markus Armbruster
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=20250312143504.1659061-1-armbru@redhat.com \
--to=armbru@redhat.com \
--cc=gaosong@loongson.cn \
--cc=qemu-devel@nongnu.org \
--cc=vladislav.yaroshchuk@jetbrains.com \
/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).