From e4e7cbfded0db34ba53a6ec6eedf125143d1c67a Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Thu, 8 May 2014 10:18:14 -0500 Subject: schedsim_smpsimple: Fix smp output. --- schedsim/shell/schedsim_smpsimple/printheir_executing.c | 8 ++++++-- 1 file 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 #include +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 ); -- cgit v1.2.3