serial: log error using display
The function handle_write can only fail with an io::Error. Since this
error implements display, we can log it using the pretty print.
@@ -238,7 +238,7 @@ impl BusDevice for Serial {
return;
}
if let Err(e) = self.handle_write(offset as u8, data[0]) {
- error!("Failed the write to serial: {:?}", e);
+ error!("Failed the write to serial: {}", e);
METRICS.uart.error_count.inc();
}
}
