From: arighi Date: Thu, 13 May 2010 15:48:36 +0000 (+0000) Subject: benchmark: print a carriage return "\r" after new line "\n" in context_switch. X-Git-Tag: 2.5.0~230 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=6c1386dc848dbd25bfd19208ea75aefe6e9673e4;p=bertos.git 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 --- 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