From 6c1386dc848dbd25bfd19208ea75aefe6e9673e4 Mon Sep 17 00:00:00 2001 From: arighi Date: Thu, 13 May 2010 15:48:36 +0000 Subject: [PATCH] benchmark: print a carriage return "\r" after new line "\n" in context_switch. This allows to correctly show the output messages when they are not processed within a terminal (e.g., from minicom). git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3687 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/benchmark/context_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/benchmark/context_switch.c b/bertos/benchmark/context_switch.c index a1a1d020..ce051626 100644 --- a/bertos/benchmark/context_switch.c +++ b/bertos/benchmark/context_switch.c @@ -123,7 +123,7 @@ void NORETURN context_switch(void) while (1) { #if CONFIG_USE_HP_TIMER - kfile_printf(&out.fd, "Switch: %lu.%lu usec\n", + kfile_printf(&out.fd, "Switch: %lu.%lu usec\n\r", hptime_to_us((end - start)), hptime_to_us((end - start) * 1000) % 1000); #endif -- 2.25.1