Import serial_println only in test mode

This commit is contained in:
Philipp Oppermann
2019-04-22 11:48:50 +02:00
parent 46bb44b95d
commit d0629ba5a2

View File

@@ -1,9 +1,11 @@
use crate::{serial_print, serial_println};
use core::fmt; use core::fmt;
use lazy_static::lazy_static; use lazy_static::lazy_static;
use spin::Mutex; use spin::Mutex;
use volatile::Volatile; use volatile::Volatile;
#[cfg(test)]
use crate::{serial_print, serial_println};
lazy_static! { lazy_static! {
/// A global `Writer` instance that can be used for printing to the VGA text buffer. /// A global `Writer` instance that can be used for printing to the VGA text buffer.
/// ///