Commit c4e13764ff for qemu.org
commit c4e13764ffa8ca7ec661ae3c6f9f99133d470e98
Author: Yodel Eldar <yodel.eldar@yodel.dev>
Date: Mon Sep 14 11:52:49 2026 -0500
contrib/vhost-user-bridge: Use stderr for debug output
Since vhost-user-bridge is solely used for testing, and
logging to stderr ensures proper interleaving of debug
output in automated testing, modify the DPRINT macro to
write to stderr instead of stdout.
Message ID of relevant thread:
<20260906-nohmp-next-v1-2-2b21e63974f3@redhat.com>
Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Suggested-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Yodel Eldar <yodel.eldar@yodel.dev>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260914165250.88382-2-yodel.eldar@yodel.dev>
diff --git a/contrib/vhost-user-bridge/vhost-user-bridge.c b/contrib/vhost-user-bridge/vhost-user-bridge.c
index 3f0fd0fa49..a6f7ec226c 100644
--- a/contrib/vhost-user-bridge/vhost-user-bridge.c
+++ b/contrib/vhost-user-bridge/vhost-user-bridge.c
@@ -41,7 +41,7 @@
#define DPRINT(...) \
do { \
if (VHOST_USER_BRIDGE_DEBUG) { \
- printf(__VA_ARGS__); \
+ fprintf(stderr, __VA_ARGS__); \
} \
} while (0)