[rtems-schedsim commit] schedsim_smpsimple: Fix smp output.

Jennifer Averett jennifer at rtems.org
Fri May 9 13:30:04 UTC 2014


Module:    rtems-schedsim
Branch:    master
Commit:    e4e7cbfded0db34ba53a6ec6eedf125143d1c67a
Changeset: http://git.rtems.org/rtems-schedsim/commit/?id=e4e7cbfded0db34ba53a6ec6eedf125143d1c67a

Author:    Jennifer Averett <jennifer.averett at oarcorp.com>
Date:      Thu May  8 10:18:14 2014 -0500

schedsim_smpsimple:  Fix smp output.

---

 .../shell/schedsim_smpsimple/printheir_executing.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/schedsim/shell/schedsim_smpsimple/printheir_executing.c b/schedsim/shell/schedsim_smpsimple/printheir_executing.c
index 6604adb..b3ad6a0 100644
--- a/schedsim/shell/schedsim_smpsimple/printheir_executing.c
+++ b/schedsim/shell/schedsim_smpsimple/printheir_executing.c
@@ -12,9 +12,12 @@
 #include <stdio.h>
 #include <rtems.h>
 
+extern uint32_t Schedsim_Current_cpu;
+
 void PRINT_EXECUTING() {
   printf(
-    "  Thread Executing: 0x%08x priority=%ld\n",
+    "  CPU %d: Thread Executing 0x%08x priority=%ld\n",
+     Schedsim_Current_cpu,
     _Thread_Executing->Object.id,
     (long) _Thread_Executing->current_priority
   );
@@ -22,7 +25,8 @@ void PRINT_EXECUTING() {
 
 void PRINT_HEIR() {
   printf( 
-    "  Thread Heir: 0x%08x priority=%ld\n", 
+    "  CPU %d: Thread Heir 0x%08x priority=%ld\n",
+    Schedsim_Current_cpu,
     _Thread_Heir->Object.id, 
     (long) _Thread_Heir->current_priority 
   );




More information about the vc mailing list