mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Removed assert condition when not initialized or there are 0 periods.
This commit is contained in:
@@ -128,6 +128,11 @@ void Period_usage_Dump( void )
|
||||
unsigned32 u32_name;
|
||||
char name[5];
|
||||
|
||||
if ( !Period_usage_Information ) {
|
||||
printf( "Period statistics library is not initialized\n" );
|
||||
return;
|
||||
}
|
||||
|
||||
printf( "Period information by period\n" );
|
||||
printf( " ID OWNER PERIODS MISSED CPU TIME WALL TIME\n" );
|
||||
|
||||
|
||||
@@ -128,6 +128,11 @@ void Period_usage_Dump( void )
|
||||
unsigned32 u32_name;
|
||||
char name[5];
|
||||
|
||||
if ( !Period_usage_Information ) {
|
||||
printf( "Period statistics library is not initialized\n" );
|
||||
return;
|
||||
}
|
||||
|
||||
printf( "Period information by period\n" );
|
||||
printf( " ID OWNER PERIODS MISSED CPU TIME WALL TIME\n" );
|
||||
|
||||
|
||||
@@ -128,6 +128,11 @@ void Period_usage_Dump( void )
|
||||
unsigned32 u32_name;
|
||||
char name[5];
|
||||
|
||||
if ( !Period_usage_Information ) {
|
||||
printf( "Period statistics library is not initialized\n" );
|
||||
return;
|
||||
}
|
||||
|
||||
printf( "Period information by period\n" );
|
||||
printf( " ID OWNER PERIODS MISSED CPU TIME WALL TIME\n" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user