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>
This commit is contained in:
1 parent
7ad318fe01
commit
c4e13764ff
1 file changed
+1
-1
@@ -41,7 +41,7 @@
|
||||
#define DPRINT(...) \
|
||||
do { \
|
||||
if (VHOST_USER_BRIDGE_DEBUG) { \
|
||||
printf(__VA_ARGS__); \
|
||||
fprintf(stderr, __VA_ARGS__); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
||||
Reference in new issue
Block a user