From bbb96ceb1623a93c618b6843de683f32ce34e4c5 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 4 Oct 2009 22:15:00 +0000 Subject: 2009-10-04 Joel Sherrill * rtems/src/ratemonreportstatistics.c: owner field is always set so safe to use. Reformat. * rtems/src/regionresizesegment.c: Always evaluate the blocked queue if the resize succeeded. * rtems/src/tasksetnote.c: Spacing. --- cpukit/rtems/src/ratemonreportstatistics.c | 22 ++++++++-------------- cpukit/rtems/src/regionresizesegment.c | 2 +- cpukit/rtems/src/tasksetnote.c | 3 +-- 3 files changed, 10 insertions(+), 17 deletions(-) (limited to 'cpukit/rtems') diff --git a/cpukit/rtems/src/ratemonreportstatistics.c b/cpukit/rtems/src/ratemonreportstatistics.c index bd9bbed84c..59bb07c96f 100644 --- a/cpukit/rtems/src/ratemonreportstatistics.c +++ b/cpukit/rtems/src/ratemonreportstatistics.c @@ -54,12 +54,12 @@ void rtems_rate_monotonic_report_statistics_with_plugin( return; (*print)( context, "Period information by period\n" ); -#if defined(RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS) - (*print)( context, "--- CPU times are in seconds ---\n" ); -#endif -#if defined(RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS) - (*print)( context, "--- Wall times are in seconds ---\n" ); -#endif + #if defined(RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS) + (*print)( context, "--- CPU times are in seconds ---\n" ); + #endif + #if defined(RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS) + (*print)( context, "--- Wall times are in seconds ---\n" ); + #endif /* Layout by columns -- in memory of Hollerith :) @@ -118,16 +118,11 @@ ididididid NNNN ccccc mmmmmm X continue; #endif - name[ 0 ] = '\0'; - - if ( the_status.owner ) { - rtems_object_get_name( the_status.owner, sizeof(name), name ); - } + rtems_object_get_name( the_status.owner, sizeof(name), name ); /* * Print part of report line that is not dependent on granularity */ - (*print)( context, "0x%08" PRIx32 " %4s %5" PRId32 " %6" PRId32 " ", id, name, @@ -137,7 +132,6 @@ ididididid NNNN ccccc mmmmmm X /* * If the count is zero, don't print statistics */ - if (the_stats.count == 0) { (*print)( context, "\n" ); continue; @@ -180,7 +174,7 @@ ididididid NNNN ccccc mmmmmm X } /* - * print Wall time part of statistics + * print wall time part of statistics */ { #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS diff --git a/cpukit/rtems/src/regionresizesegment.c b/cpukit/rtems/src/regionresizesegment.c index a2f64f5fb3..865c898b8f 100644 --- a/cpukit/rtems/src/regionresizesegment.c +++ b/cpukit/rtems/src/regionresizesegment.c @@ -80,7 +80,7 @@ rtems_status_code rtems_region_resize_segment( _Region_Debug_Walk( the_region, 8 ); - if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) + if ( status == HEAP_RESIZE_SUCCESSFUL ) _Region_Process_queue( the_region ); /* unlocks allocator */ else _RTEMS_Unlock_allocator(); diff --git a/cpukit/rtems/src/tasksetnote.c b/cpukit/rtems/src/tasksetnote.c index ebb501998e..e104ba5069 100644 --- a/cpukit/rtems/src/tasksetnote.c +++ b/cpukit/rtems/src/tasksetnote.c @@ -1,8 +1,7 @@ /* * RTEMS Task Manager * - * - * COPYRIGHT (c) 1989-2007. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be -- cgit v1.2.3