From 072f06ff4c8ecf0a473d15237e942f833629565d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20G=C3=BCntner?= Date: Tue, 8 Jul 2025 22:36:55 +0200 Subject: [PATCH] misc: vhost_user_net: replace eprintln with log::error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Other lines are already logged using `log::error!` and `env_logger` is initialized before calling `start_net_backend` in `main()`. Signed-off-by: Maximilian Güntner --- vhost_user_net/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vhost_user_net/src/lib.rs b/vhost_user_net/src/lib.rs index 433f0c7a2..56b54ad6d 100644 --- a/vhost_user_net/src/lib.rs +++ b/vhost_user_net/src/lib.rs @@ -348,7 +348,7 @@ pub fn start_net_backend(backend_command: &str) { let backend_config = match VhostUserNetBackendConfig::parse(backend_command) { Ok(config) => config, Err(e) => { - eprintln!("Failed parsing parameters {e:?}"); + error!("Failed parsing parameters {e:?}"); process::exit(1); } };