forked from Imagelibrary/rtems
Update rtems_fatal_source_text()
Add RTEMS_FATAL_SOURCE_PANIC to rtems_fatal_source_text(). Update #3244.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2013-2014 embedded brains GmbH. All rights reserved.
|
||||
* Copyright (c) 2013, 2018 embedded brains GmbH. All rights reserved.
|
||||
*
|
||||
* embedded brains GmbH
|
||||
* Dornierstr. 4
|
||||
@@ -37,7 +37,8 @@ static const char *const fatal_source_text[] = {
|
||||
"RTEMS_FATAL_SOURCE_ASSERT",
|
||||
"RTEMS_FATAL_SOURCE_STACK_CHECKER",
|
||||
"RTEMS_FATAL_SOURCE_EXCEPTION",
|
||||
"RTEMS_FATAL_SOURCE_SMP"
|
||||
"RTEMS_FATAL_SOURCE_SMP",
|
||||
"RTEMS_FATAL_SOURCE_PANIC"
|
||||
};
|
||||
|
||||
const char *rtems_fatal_source_text( rtems_fatal_source source )
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012, 2017 embedded brains GmbH. All rights reserved.
|
||||
* Copyright (c) 2012, 2018 embedded brains GmbH. All rights reserved.
|
||||
*
|
||||
* embedded brains GmbH
|
||||
* Donierstr. 4
|
||||
@@ -53,7 +53,7 @@ static void test_fatal_source_text(void)
|
||||
puts( text );
|
||||
} while ( text != text_last );
|
||||
|
||||
rtems_test_assert( source - 3 == RTEMS_FATAL_SOURCE_SMP );
|
||||
rtems_test_assert( source - 3 == RTEMS_FATAL_SOURCE_PANIC );
|
||||
}
|
||||
|
||||
static void test_status_text(void)
|
||||
|
||||
@@ -44,6 +44,7 @@ RTEMS_FATAL_SOURCE_ASSERT
|
||||
RTEMS_FATAL_SOURCE_STACK_CHECKER
|
||||
RTEMS_FATAL_SOURCE_EXCEPTION
|
||||
RTEMS_FATAL_SOURCE_SMP
|
||||
RTEMS_FATAL_SOURCE_PANIC
|
||||
?
|
||||
?
|
||||
RTEMS_SUCCESSFUL
|
||||
|
||||
Reference in New Issue
Block a user