benchmark: print a carriage return "\r" after new line "\n" in context_switch.
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 13 May 2010 15:48:36 +0000 (15:48 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 13 May 2010 15:48:36 +0000 (15:48 +0000)
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

index a1a1d0204b91cfc129c82e6f78fc22d17e6dd422..ce051626bc6b770fc399097de9fea74f661cad62 100644 (file)
@@ -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