Skip to content

Commit

Permalink
svsm: Stop pretty-printing SvsmError
Browse files Browse the repository at this point in the history
Pretty-printing SvsmError in Debug formatting doesn't seem to be
particularly helpful at this point. For example:

[SVSM] Failed to launch /init: FileSystem(
    FileNotFound,
)

Change to using the default format to make logging more compact.

Signed-off-by: Peter Fang <peter.fang@intel.com>
  • Loading branch information
peterfang committed Feb 7, 2025
1 parent 7803da1 commit 5768e12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/src/svsm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ pub extern "C" fn svsm_main() {
virt_log_usage();

if let Err(e) = SVSM_PLATFORM.launch_fw(&config) {
panic!("Failed to launch FW: {e:#?}");
panic!("Failed to launch FW: {e:?}");
}

start_kernel_task(request_processing_main, String::from("request-processing"))
Expand All @@ -339,7 +339,7 @@ pub extern "C" fn svsm_main() {

match exec_user("/init", opendir("/").expect("Failed to find FS root")) {
Ok(_) => (),
Err(e) => log::info!("Failed to launch /init: {e:#?}"),
Err(e) => log::info!("Failed to launch /init: {e:?}"),
}

request_loop();
Expand Down

0 comments on commit 5768e12

Please sign in to comment.