From 813cb7363beb5075496dfb75e0cedeaf0c91844f Mon Sep 17 00:00:00 2001 From: Jiaqi Gao Date: Wed, 10 Apr 2024 21:44:03 -0400 Subject: [PATCH] migtd: add missing `\n` for log Signed-off-by: Jiaqi Gao --- src/migtd/src/bin/migtd/main.rs | 4 ++-- src/migtd/src/ratls/server_client.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/migtd/src/bin/migtd/main.rs b/src/migtd/src/bin/migtd/main.rs index 74a222a0..9c70af0e 100644 --- a/src/migtd/src/bin/migtd/main.rs +++ b/src/migtd/src/bin/migtd/main.rs @@ -52,7 +52,7 @@ pub fn runtime_main() { } fn basic_info() { - info!("MigTD Version - {}", MIGTD_VERSION); + info!("MigTD Version - {}\n", MIGTD_VERSION); } #[cfg(feature = "test_disable_ra_and_accept_all")] @@ -92,7 +92,7 @@ fn handle_pre_mig() { panic!("Migration is not supported by VMM"); } // Loop to wait for request - info!("Loop to wait for request"); + info!("Loop to wait for request\n"); loop { let mut session = MigrationSession::new(); if session.wait_for_request().is_ok() { diff --git a/src/migtd/src/ratls/server_client.rs b/src/migtd/src/ratls/server_client.rs index d8e9ba1a..f0525cef 100644 --- a/src/migtd/src/ratls/server_client.rs +++ b/src/migtd/src/ratls/server_client.rs @@ -149,8 +149,8 @@ fn verify_peer_cert( ); if let Err(e) = &policy_check_result { - error!("Policy check failed, below is the detail information:"); - error!("{:x?}", e); + error!("Policy check failed, below is the detail information:\n"); + error!("{:x?}\n", e); } return policy_check_result.map_err(|e| match e {