From 99c3d86fa575c8b02e594061018b4eb6c28ac4c7 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 12 Jun 2018 15:36:21 +0200 Subject: [PATCH] Fix some printlns that should be print_serials --- .../second-edition/posts/05-integration-tests/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blog/content/second-edition/posts/05-integration-tests/index.md b/blog/content/second-edition/posts/05-integration-tests/index.md index 44573c72..eb1d37e3 100644 --- a/blog/content/second-edition/posts/05-integration-tests/index.md +++ b/blog/content/second-edition/posts/05-integration-tests/index.md @@ -138,7 +138,7 @@ mod serial; #[no_mangle] pub extern "C" fn _start() -> ! { println!("Hello World{}", "!"); // prints to vga buffer - serial_println!("Hello Host{}", "!"); // prints to serial + serial_println!("Hello Host{}", "!"); loop {} } @@ -226,7 +226,7 @@ We can now test the QEMU shutdown by calling `exit_qemu` from our `_start` funct #[no_mangle] pub extern "C" fn _start() -> ! { println!("Hello World{}", "!"); // prints to vga buffer - println!("Hello Host{}", "!"); // prints to serial + serial_println!("Hello Host{}", "!"); unsafe { exit_qemu(); } @@ -293,7 +293,7 @@ pub extern "C" fn _start() -> ! { #[cfg(not(test))] #[no_mangle] pub extern "C" fn _start() -> ! { - println!("Hello Host{}", "!"); // prints to serial + serial_println!("Hello Host{}", "!"); run_test_1(); run_test_2();