Skip to content

Commit

Permalink
stage2: print SVSM region in hex
Browse files Browse the repository at this point in the history
The SVSM kernel region displayed in the log information can be read much
more easily if it is displayed in hexadecimal instead of decimal.

Signed-off-by: Jon Lange <[email protected]>
  • Loading branch information
msft-jlange committed Jan 22, 2025
1 parent 286ac39 commit 85cc0aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kernel/src/stage2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,11 @@ pub extern "C" fn stage2_main(launch_info: &Stage2LaunchInfo) {
.find_kernel_region()
.expect("Failed to find memory region for SVSM kernel");

log::info!("SVSM memory region: {kernel_region:?}");
log::info!(
"SVSM memory region: start={:#018x}, end={:#018x}",
u64::from(kernel_region.start()),
u64::from(kernel_region.end())
);

init_valid_bitmap_alloc(kernel_region).expect("Failed to allocate valid-bitmap");

Expand Down

0 comments on commit 85cc0aa

Please sign in to comment.