Skip to content

Commit

Permalink
firmware: use writeln instead of write in UART logger.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed May 29, 2018
1 parent 5608893 commit 2e09307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions artiq/firmware/libboard_misoc/uart_logger.rs
Expand Up @@ -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());
}
}

Expand Down

0 comments on commit 2e09307

Please sign in to comment.