From 2e09307d8d4b0b60294f5c72c202d3021f86d3fa Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 29 May 2018 03:16:52 +0000 Subject: [PATCH] firmware: use writeln instead of write in UART logger. --- artiq/firmware/libboard_misoc/uart_logger.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/firmware/libboard_misoc/uart_logger.rs b/artiq/firmware/libboard_misoc/uart_logger.rs index 751967c5a..e3e26f6cf 100644 --- a/artiq/firmware/libboard_misoc/uart_logger.rs +++ b/artiq/firmware/libboard_misoc/uart_logger.rs @@ -25,8 +25,8 @@ impl Log for ConsoleLogger { let seconds = timestamp / 1_000_000; let micros = timestamp % 1_000_000; - let _ = write!(Console, "[{:6}.{:06}s] {:>5}({}): {}", - seconds, micros, record.level(), record.target(), record.args()); + let _ = writeln!(Console, "[{:6}.{:06}s] {:>5}({}): {}", + seconds, micros, record.level(), record.target(), record.args()); } }