From c4e13764ffa8ca7ec661ae3c6f9f99133d470e98 Mon Sep 17 00:00:00 2001 From: Yodel Eldar Date: Mon, 14 Sep 2026 11:52:49 -0500 Subject: [PATCH] contrib/vhost-user-bridge: Use stderr for debug output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Suggested-by: Marc-André Lureau Signed-off-by: Yodel Eldar Reviewed-by: Michael S. Tsirkin Reviewed-by: Marc-André Lureau Signed-off-by: Michael S. Tsirkin Message-ID: <20260914165250.88382-2-yodel.eldar@yodel.dev> --- contrib/vhost-user-bridge/vhost-user-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)