From c785fbc3d3ae318fd7aa16fa0c1503ae7a22b111 Mon Sep 17 00:00:00 2001 From: Frank Mehnert Date: Wed, 17 Apr 2024 10:47:38 +0200 Subject: [PATCH] add '\n' after "Calibrating timer loop" During timer calibration, other CPUs might come up printing their boot messages. The '\n' prevents a mix-up of messages during boot. Change-Id: I64bcfc37ea14b75588accbd7a2be32a79b3c9a66 --- src/kern/kernel_thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kern/kernel_thread.cpp b/src/kern/kernel_thread.cpp index dcd5508a..db629fa5 100644 --- a/src/kern/kernel_thread.cpp +++ b/src/kern/kernel_thread.cpp @@ -98,13 +98,13 @@ Kernel_thread::bootstrap() // Needs to be done before the timer is enabled. Otherwise after returning // from printf() there could be a burst of timer interrupts distorting the // timer loop calibration. The measurement intervals would be far too short. - printf("Calibrating timer loop... "); + printf("Calibrating timer loop...\n"); Timer_tick::enable(current_cpu()); Proc::sti(); Watchdog::enable(); // Init delay loop, needs working timer interrupt Delay::init(); - printf("done.\n"); + printf("Timer calibration done.\n"); run(); }