diff options
Diffstat (limited to 'cpukit/libmisc/stackchk')
-rw-r--r-- | cpukit/libmisc/stackchk/check.c | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c index b7273cfba7..3c864a4880 100644 --- a/cpukit/libmisc/stackchk/check.c +++ b/cpukit/libmisc/stackchk/check.c @@ -420,16 +420,23 @@ void Stack_check_Dump_threads_usage( else used = 0; - if ( the_thread ) { - (*print_handler)( - print_context, - "0x%08" PRIx32 " %4s", - the_thread->Object.id, - rtems_object_get_name( the_thread->Object.id, sizeof(name), name ) - ); - } else { - (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); - } + + #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE) + if ( the_thread ) + #endif + { + (*print_handler)( + print_context, + "0x%08" PRIx32 " %4s", + the_thread->Object.id, + rtems_object_get_name( the_thread->Object.id, sizeof(name), name ) + ); + } + #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE) + else { + (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); + } + #endif (*print_handler)( print_context, |