Remove print_error and use normal println in exception handlers

(cherry picked from commit 9b83b2853e)
This commit is contained in:
Philipp Oppermann
2016-10-26 09:08:27 +02:00
parent 987c56a153
commit 33a96b26d3
2 changed files with 15 additions and 33 deletions

View File

@@ -43,18 +43,6 @@ pub fn clear_screen() {
}
}
pub unsafe fn print_error(fmt: fmt::Arguments) {
use core::fmt::Write;
let mut writer = Writer {
column_position: 0,
color_code: ColorCode::new(Color::Red, Color::Black),
buffer: Unique::new(0xb8000 as *mut _),
};
writer.new_line();
writer.write_fmt(fmt);
}
#[allow(dead_code)]
#[derive(Debug, Clone, Copy)]
#[repr(u8)]