From: Yodel Eldar <[email protected]> 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: <[email protected]> Suggested-by: Michael S. Tsirkin <[email protected]> Suggested-by: Marc-André Lureau <[email protected]> Signed-off-by: Yodel Eldar <[email protected]> --- 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) -- 2.55.0
