Skip to content

Commit 1c56c2a

Browse files
Get rid of cloned stdout variable, and use st.stdout() instead
Co-authored-by: Philipp Oppermann <dev@phil-opp.com>
1 parent fa7b227 commit 1c56c2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uefi/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fn main_inner(image: Handle, mut st: SystemTable<Boot>) -> Status {
7676
let stdout = stdout.as_mut().unwrap();
7777
let stdout = stdout.stdout();
7878
stdout.clear().unwrap();
79-
writeln!(stdout, "UEFI bootloader started; trying to load kernel").unwrap();
79+
writeln!(st.stdout(), "UEFI bootloader started; trying to load kernel").unwrap();
8080

8181
let mut boot_mode = BootMode::Disk;
8282
let mut kernel = load_kernel(image, &mut st, boot_mode);

0 commit comments

Comments
 (0)