diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-05-05 16:45:57 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-05-05 16:45:57 +0000 |
commit | c0d7e23ce943acd34f20fca96540769ab1927ec9 (patch) | |
tree | b148b73f506d1bdb7b007fe71dc1903e6861631f /testsuites/sptests/sp35 | |
parent | 2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-c0d7e23ce943acd34f20fca96540769ab1927ec9.tar.bz2 |
2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp09/screen12.c, sp09/sp09.scn, sp21/Makefile.am, sp35/priinv.c,
sp39/init.c, sp50/init.c, sp57/init.c, sp72/init.c, sp73/init.c,
spintrcritical01/init.c, spprivenv01/init.c, spsimplesched01/init.c,
spsimplesched02/init.c: Remove warnings.
Diffstat (limited to 'testsuites/sptests/sp35')
-rw-r--r-- | testsuites/sptests/sp35/priinv.c | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/testsuites/sptests/sp35/priinv.c b/testsuites/sptests/sp35/priinv.c index 46818313f6..c0d9310eb8 100644 --- a/testsuites/sptests/sp35/priinv.c +++ b/testsuites/sptests/sp35/priinv.c @@ -243,17 +243,20 @@ void AccessLocalHw(void) { rtems_status_code Sts; - rtems_task_priority EnterPrio; /* Statistics log */ +#if defined(TEST_PRINT_STATISTICS) rtems_task_priority AccessPrio; /* : */ - rtems_task_priority LeavePrio; /* : */ - uint32_t EnterCnt; /* : */ uint32_t AccessCnt; /* : */ + rtems_task_priority EnterPrio; /* Statistics log */ + uint32_t EnterCnt; /* : */ + rtems_task_priority LeavePrio; /* : */ uint32_t LeaveCnt; /* : */ +#endif +#if defined(TEST_PRINT_STATISTICS) /* Store information about the current situation */ EnterPrio = _Thread_Executing->current_priority; EnterCnt = _Thread_Executing->resource_count; - +#endif printf(" AccessLocalHw called by %s\n", CallerName()); @@ -269,18 +272,20 @@ void AccessLocalHw(void) Sts = rtems_semaphore_obtain(LocalHwSync_S, RTEMS_WAIT, RTEMS_NO_TIMEOUT); directive_failed( Sts, "rtems_semaphore_obtain(LocalHwAccess_R...)" ); +#if defined(TEST_PRINT_STATISTICS) /* Store information about the current situation */ AccessPrio = _Thread_Executing->current_priority; AccessCnt = _Thread_Executing->resource_count; +#endif Sts = rtems_semaphore_release(LocalHwAccess_R); directive_failed( Sts, "rtems_semaphore_release(LocalHwAccess_R)" ); +#if defined(TEST_PRINT_STATISTICS) /* Store information about the current situation */ LeavePrio = _Thread_Executing->current_priority; LeaveCnt = _Thread_Executing->resource_count; -#if defined(TEST_PRINT_STATISTICS) printf( " AccessLocalHw from %s statistics:\n" " - Prio: %d -> %d -> %d\n - Cnt: %d -> %d -> %d\n", @@ -304,17 +309,20 @@ void AccessRemoteHw(void) { rtems_status_code Sts; +#if defined(TEST_PRINT_STATISTICS) rtems_task_priority EnterPrio; /* Statistics log */ rtems_task_priority AccessPrio; /* : */ rtems_task_priority LeavePrio; /* : */ uint32_t EnterCnt; /* : */ uint32_t AccessCnt; /* : */ uint32_t LeaveCnt; /* : */ +#endif +#if defined(TEST_PRINT_STATISTICS) /* Store information about the current situation */ EnterPrio = _Thread_Executing->current_priority; EnterCnt = _Thread_Executing->resource_count; - +#endif printf("AccessRemoteHw called by %s\n", CallerName()); @@ -329,18 +337,20 @@ void AccessRemoteHw(void) printf("AccessRemoteHw access local %s\n", CallerName()); AccessLocalHw(); +#if defined(TEST_PRINT_STATISTICS) /* Store information about the current situation */ AccessPrio = _Thread_Executing->current_priority; AccessCnt = _Thread_Executing->resource_count; +#endif Sts = rtems_semaphore_release(RemoteHwAccess_R); directive_failed( Sts, "rtems_semaphore_release(RemoreHwAccess_R" ); +#if defined(TEST_PRINT_STATISTICS) /* Store information about the current situation */ LeavePrio = _Thread_Executing->current_priority; LeaveCnt = _Thread_Executing->resource_count; -#if defined(TEST_PRINT_STATISTICS) printf( "\nAccessRemoteHw from %s statistics:\n" " - Prio: %d -> %d -> %d\n - Cnt: %d -> %d -> %d\n", |