devices: i8042: Use error! macro

Now that we have the logging infrastructure in place there is no need to
use println!

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2019-08-29 14:48:10 +01:00 committed by Samuel Ortiz
parent 011496bda0
commit ebe8edd423

View File

@ -35,7 +35,7 @@ impl BusDevice for I8042Device {
fn write(&mut self, _base: u64, offset: u64, data: &[u8]) {
if data.len() == 1 && data[0] == 0xfe && offset == 3 {
if let Err(e) = self.reset_evt.write(1) {
println!("Error triggering i8042 reset event: {}", e);
error!("Error triggering i8042 reset event: {}", e);
}
}
}