vhost-user-test: remove trailing newlines in g_test_message() calls

Fixes: c9a1ea9c52 Revert "tests/qtest: use qos_printf instead of g_test_message"
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Michael Tokarev 2025-09-17 17:26:45 +03:00
parent d56a30a7bb
commit 383c722483

View file

@ -391,7 +391,7 @@ static void chr_read(void *opaque, const uint8_t *buf, int size)
* We don't need to do anything here, the remote is just
* letting us know it is in charge. Just log it.
*/
g_test_message("set_owner: start of session\n");
g_test_message("set_owner: start of session");
break;
case VHOST_USER_GET_PROTOCOL_FEATURES:
@ -417,7 +417,7 @@ static void chr_read(void *opaque, const uint8_t *buf, int size)
* the remote end to send this. There is no handshake reply so
* just log the details for debugging.
*/
g_test_message("set_protocol_features: 0x%"PRIx64 "\n", msg.payload.u64);
g_test_message("set_protocol_features: 0x%"PRIx64, msg.payload.u64);
break;
/*
@ -425,11 +425,11 @@ static void chr_read(void *opaque, const uint8_t *buf, int size)
* address of the vrings but we can simply report them.
*/
case VHOST_USER_SET_VRING_NUM:
g_test_message("set_vring_num: %d/%d\n",
g_test_message("set_vring_num: %d/%d",
msg.payload.state.index, msg.payload.state.num);
break;
case VHOST_USER_SET_VRING_ADDR:
g_test_message("set_vring_addr: 0x%"PRIx64"/0x%"PRIx64"/0x%"PRIx64"\n",
g_test_message("set_vring_addr: 0x%"PRIx64"/0x%"PRIx64"/0x%"PRIx64,
msg.payload.addr.avail_user_addr,
msg.payload.addr.desc_user_addr,
msg.payload.addr.used_user_addr);
@ -462,7 +462,7 @@ static void chr_read(void *opaque, const uint8_t *buf, int size)
case VHOST_USER_SET_VRING_CALL:
/* consume the fd */
if (!qemu_chr_fe_get_msgfds(chr, &fd, 1) && fd < 0) {
g_test_message("call fd: %d, do not set non-blocking\n", fd);
g_test_message("call fd: %d, do not set non-blocking", fd);
break;
}
/*
@ -507,12 +507,12 @@ static void chr_read(void *opaque, const uint8_t *buf, int size)
* fully functioning vhost-user we would enable/disable the
* vring monitoring.
*/
g_test_message("set_vring(%d)=%s\n", msg.payload.state.index,
g_test_message("set_vring(%d)=%s", msg.payload.state.index,
msg.payload.state.num ? "enabled" : "disabled");
break;
default:
g_test_message("vhost-user: un-handled message: %d\n", msg.request);
g_test_message("vhost-user: un-handled message: %d", msg.request);
break;
}