source: rtems-schedsim/schedsim/shell/schedsim_smpsimple/printheir_executing.c @ 2d51251

Last change on this file since 2d51251 was a2aad55, checked in by Joel Sherrill <joel.sherrill@…>, on 05/01/13 at 00:41:56

Remove CVS $

  • Property mode set to 100644
File size: 647 bytes
Line 
1/*
2 *  printheir_executing
3 *
4 *  COPYRIGHT (c) 1989-2013.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 */
11
12#include <stdio.h>
13#include <rtems.h>
14
15void PRINT_EXECUTING() {
16  printf(
17    "  Thread Executing: 0x%08x priority=%ld\n",
18    _Thread_Executing->Object.id,
19    (long) _Thread_Executing->current_priority
20  );
21}
22
23void PRINT_HEIR() {
24  printf(
25    "  Thread Heir: 0x%08x priority=%ld\n",
26    _Thread_Heir->Object.id,
27    (long) _Thread_Heir->current_priority
28  );
29}
Note: See TracBrowser for help on using the repository browser.