summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/ratemonreportstatistics.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-10-04 22:15:00 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-10-04 22:15:00 +0000
commitbbb96ceb1623a93c618b6843de683f32ce34e4c5 (patch)
treebed9deed28904a1663bc401f84986d6aeaefaff0 /cpukit/rtems/src/ratemonreportstatistics.c
parent2009-10-04 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-bbb96ceb1623a93c618b6843de683f32ce34e4c5.tar.bz2
2009-10-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to 'cpukit/rtems/src/ratemonreportstatistics.c')
-rw-r--r--cpukit/rtems/src/ratemonreportstatistics.c22
1 files changed, 8 insertions, 14 deletions
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