[rtems commit] Update rtems_fatal_source_text()

Sebastian Huber sebh at rtems.org
Tue Jun 5 07:13:11 UTC 2018


Module:    rtems
Branch:    master
Commit:    c934365f238cf971e1ec39a19fbd06df25e5f01c
Changeset: http://git.rtems.org/rtems/commit/?id=c934365f238cf971e1ec39a19fbd06df25e5f01c

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jun  5 08:06:15 2018 +0200

Update rtems_fatal_source_text()

Add RTEMS_FATAL_SOURCE_PANIC to rtems_fatal_source_text().

Update #3244.

---

 cpukit/sapi/src/fatalsrctext.c                             | 5 +++--
 testsuites/sptests/spinternalerror02/init.c                | 4 ++--
 testsuites/sptests/spinternalerror02/spinternalerror02.scn | 1 +
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/cpukit/sapi/src/fatalsrctext.c b/cpukit/sapi/src/fatalsrctext.c
index b6b4368..4b02234 100644
--- a/cpukit/sapi/src/fatalsrctext.c
+++ b/cpukit/sapi/src/fatalsrctext.c
@@ -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 )
diff --git a/testsuites/sptests/spinternalerror02/init.c b/testsuites/sptests/spinternalerror02/init.c
index 9ee8e6d..36c2e5d 100644
--- a/testsuites/sptests/spinternalerror02/init.c
+++ b/testsuites/sptests/spinternalerror02/init.c
@@ -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)
diff --git a/testsuites/sptests/spinternalerror02/spinternalerror02.scn b/testsuites/sptests/spinternalerror02/spinternalerror02.scn
index eaba954..50cb604 100644
--- a/testsuites/sptests/spinternalerror02/spinternalerror02.scn
+++ b/testsuites/sptests/spinternalerror02/spinternalerror02.scn
@@ -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




More information about the vc mailing list