[rtems commit] Rename is_internal to always_set_to_false

Sebastian Huber sebh at rtems.org
Mon Dec 12 07:04:53 UTC 2016


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Dec  9 10:49:49 2016 +0100

Rename is_internal to always_set_to_false

Update #2825.

---

 c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspclean.c    | 2 +-
 c/src/lib/libbsp/lm32/milkymist/startup/bspclean.c          | 2 +-
 c/src/lib/libbsp/m68k/mcf5225x/startup/bspclean.c           | 2 +-
 c/src/lib/libbsp/m68k/mrm332/misc/interr.c                  | 2 +-
 c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c            | 2 +-
 c/src/lib/libbsp/m68k/mvme162/startup/bspclean.c            | 2 +-
 c/src/lib/libbsp/m68k/mvme167/startup/bspclean.c            | 2 +-
 c/src/lib/libbsp/m68k/uC5282/startup/bspclean.c             | 2 +-
 c/src/lib/libbsp/powerpc/beatnik/startup/bspclean.c         | 2 +-
 c/src/lib/libbsp/powerpc/mvme5500/startup/bspclean.c        | 2 +-
 c/src/lib/libbsp/powerpc/virtex4/startup/bspclean.c         | 2 +-
 c/src/lib/libbsp/powerpc/virtex5/startup/bspclean.c         | 2 +-
 c/src/lib/libbsp/shared/bspclean.c                          | 2 +-
 c/src/lib/libbsp/shared/include/default-initial-extension.h | 2 +-
 c/src/lib/libbsp/sparc/leon3/startup/bspclean.c             | 2 +-
 c/src/lib/libbsp/sparc64/niagara/startup/bspclean.c         | 2 +-
 c/src/libchip/shmdr/fatal.c                                 | 2 +-
 cpukit/libmisc/stackchk/check.c                             | 2 +-
 cpukit/libmisc/testsupport/test.h                           | 2 +-
 cpukit/libmisc/testsupport/testextension.c                  | 4 ++--
 cpukit/score/include/rtems/score/userext.h                  | 6 +++---
 testsuites/libtests/exit01/init.c                           | 4 ++--
 testsuites/libtests/exit02/init.c                           | 4 ++--
 testsuites/libtests/stackchk/init.c                         | 4 ++--
 testsuites/libtests/stackchk/system.h                       | 2 +-
 testsuites/psxtests/psxfatal_support/init.c                 | 6 +++---
 testsuites/psxtests/psxfatal_support/system.h               | 2 +-
 testsuites/smptests/smpfatal01/init.c                       | 4 ++--
 testsuites/smptests/smpfatal02/init.c                       | 4 ++--
 testsuites/smptests/smpfatal03/init.c                       | 4 ++--
 testsuites/smptests/smpfatal04/init.c                       | 4 ++--
 testsuites/smptests/smpfatal05/init.c                       | 4 ++--
 testsuites/smptests/smpfatal06/init.c                       | 4 ++--
 testsuites/smptests/smpfatal08/init.c                       | 4 ++--
 testsuites/sptests/sperror01/init.c                         | 4 ++--
 testsuites/sptests/sperror02/init.c                         | 4 ++--
 testsuites/sptests/sperror03/init.c                         | 4 ++--
 testsuites/sptests/spextensions01/init.c                    | 8 ++++----
 testsuites/sptests/spfatal26/init.c                         | 4 ++--
 testsuites/sptests/spfatal_support/init.c                   | 6 +++---
 testsuites/sptests/spfatal_support/system.h                 | 2 +-
 testsuites/sptests/spinternalerror01/init.c                 | 8 ++++++--
 testsuites/sptests/spmutex01/init.c                         | 4 ++--
 testsuites/sptests/spsyslock01/init.c                       | 4 ++--
 44 files changed, 75 insertions(+), 71 deletions(-)

diff --git a/c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspclean.c b/c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspclean.c
index 5504ed6..8b95deb 100644
--- a/c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspclean.c
+++ b/c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspclean.c
@@ -19,7 +19,7 @@
 
 void bsp_fatal_extension(
   rtems_fatal_source src,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
diff --git a/c/src/lib/libbsp/lm32/milkymist/startup/bspclean.c b/c/src/lib/libbsp/lm32/milkymist/startup/bspclean.c
index d4ff09b..b010292 100644
--- a/c/src/lib/libbsp/lm32/milkymist/startup/bspclean.c
+++ b/c/src/lib/libbsp/lm32/milkymist/startup/bspclean.c
@@ -50,7 +50,7 @@ static void reconf(void)
 
 void bsp_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
diff --git a/c/src/lib/libbsp/m68k/mcf5225x/startup/bspclean.c b/c/src/lib/libbsp/m68k/mcf5225x/startup/bspclean.c
index 562b19a..5cd1aed 100644
--- a/c/src/lib/libbsp/m68k/mcf5225x/startup/bspclean.c
+++ b/c/src/lib/libbsp/m68k/mcf5225x/startup/bspclean.c
@@ -19,7 +19,7 @@
 
 void bsp_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
diff --git a/c/src/lib/libbsp/m68k/mrm332/misc/interr.c b/c/src/lib/libbsp/m68k/mrm332/misc/interr.c
index c0a8650..b1eaf13 100644
--- a/c/src/lib/libbsp/m68k/mrm332/misc/interr.c
+++ b/c/src/lib/libbsp/m68k/mrm332/misc/interr.c
@@ -33,7 +33,7 @@
 
 void bsp_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code the_error
 )
 {
diff --git a/c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c b/c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c
index 36c3317..6606b9a 100644
--- a/c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c
+++ b/c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c
@@ -37,7 +37,7 @@ static rtems_isr bsp_return_to_monitor_trap(
 
 void bsp_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
diff --git a/c/src/lib/libbsp/m68k/mvme162/startup/bspclean.c b/c/src/lib/libbsp/m68k/mvme162/startup/bspclean.c
index 085f346..dd91f96 100644
--- a/c/src/lib/libbsp/m68k/mvme162/startup/bspclean.c
+++ b/c/src/lib/libbsp/m68k/mvme162/startup/bspclean.c
@@ -38,7 +38,7 @@ static rtems_isr bsp_return_to_monitor_trap(
 
 void bsp_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
diff --git a/c/src/lib/libbsp/m68k/mvme167/startup/bspclean.c b/c/src/lib/libbsp/m68k/mvme167/startup/bspclean.c
index 54b617e..2dd980f 100644
--- a/c/src/lib/libbsp/m68k/mvme167/startup/bspclean.c
+++ b/c/src/lib/libbsp/m68k/mvme167/startup/bspclean.c
@@ -61,7 +61,7 @@ static void bsp_return_to_monitor_trap( void )
  */
 void bsp_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
diff --git a/c/src/lib/libbsp/m68k/uC5282/startup/bspclean.c b/c/src/lib/libbsp/m68k/uC5282/startup/bspclean.c
index 0daeee0..a344efd 100644
--- a/c/src/lib/libbsp/m68k/uC5282/startup/bspclean.c
+++ b/c/src/lib/libbsp/m68k/uC5282/startup/bspclean.c
@@ -16,7 +16,7 @@
 
 void bsp_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
diff --git a/c/src/lib/libbsp/powerpc/beatnik/startup/bspclean.c b/c/src/lib/libbsp/powerpc/beatnik/startup/bspclean.c
index f4369b5..0f4121d 100644
--- a/c/src/lib/libbsp/powerpc/beatnik/startup/bspclean.c
+++ b/c/src/lib/libbsp/powerpc/beatnik/startup/bspclean.c
@@ -4,7 +4,7 @@
 
 void bsp_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/startup/bspclean.c b/c/src/lib/libbsp/powerpc/mvme5500/startup/bspclean.c
index 0494696..bd332cc 100644
--- a/c/src/lib/libbsp/powerpc/mvme5500/startup/bspclean.c
+++ b/c/src/lib/libbsp/powerpc/mvme5500/startup/bspclean.c
@@ -10,7 +10,7 @@
 
 void bsp_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
diff --git a/c/src/lib/libbsp/powerpc/virtex4/startup/bspclean.c b/c/src/lib/libbsp/powerpc/virtex4/startup/bspclean.c
index 5486c66..bd5829e 100644
--- a/c/src/lib/libbsp/powerpc/virtex4/startup/bspclean.c
+++ b/c/src/lib/libbsp/powerpc/virtex4/startup/bspclean.c
@@ -41,7 +41,7 @@ __attribute__(( weak, alias("_noopfun") ));
 
 void bsp_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
diff --git a/c/src/lib/libbsp/powerpc/virtex5/startup/bspclean.c b/c/src/lib/libbsp/powerpc/virtex5/startup/bspclean.c
index 5486c66..bd5829e 100644
--- a/c/src/lib/libbsp/powerpc/virtex5/startup/bspclean.c
+++ b/c/src/lib/libbsp/powerpc/virtex5/startup/bspclean.c
@@ -41,7 +41,7 @@ __attribute__(( weak, alias("_noopfun") ));
 
 void bsp_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
diff --git a/c/src/lib/libbsp/shared/bspclean.c b/c/src/lib/libbsp/shared/bspclean.c
index 4265f11..e045512 100644
--- a/c/src/lib/libbsp/shared/bspclean.c
+++ b/c/src/lib/libbsp/shared/bspclean.c
@@ -13,7 +13,7 @@
 
 void bsp_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
diff --git a/c/src/lib/libbsp/shared/include/default-initial-extension.h b/c/src/lib/libbsp/shared/include/default-initial-extension.h
index c3e5cea..1c795b7 100644
--- a/c/src/lib/libbsp/shared/include/default-initial-extension.h
+++ b/c/src/lib/libbsp/shared/include/default-initial-extension.h
@@ -39,7 +39,7 @@ extern "C" {
 
 void bsp_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 );
 
diff --git a/c/src/lib/libbsp/sparc/leon3/startup/bspclean.c b/c/src/lib/libbsp/sparc/leon3/startup/bspclean.c
index cfe049b..eff9c86 100644
--- a/c/src/lib/libbsp/sparc/leon3/startup/bspclean.c
+++ b/c/src/lib/libbsp/sparc/leon3/startup/bspclean.c
@@ -26,7 +26,7 @@
 
 void bsp_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
diff --git a/c/src/lib/libbsp/sparc64/niagara/startup/bspclean.c b/c/src/lib/libbsp/sparc64/niagara/startup/bspclean.c
index 88750aa..eacc264 100644
--- a/c/src/lib/libbsp/sparc64/niagara/startup/bspclean.c
+++ b/c/src/lib/libbsp/sparc64/niagara/startup/bspclean.c
@@ -14,7 +14,7 @@
 
 void bsp_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
diff --git a/c/src/libchip/shmdr/fatal.c b/c/src/libchip/shmdr/fatal.c
index 914771c..ad3f18a 100644
--- a/c/src/libchip/shmdr/fatal.c
+++ b/c/src/libchip/shmdr/fatal.c
@@ -20,7 +20,7 @@
 
 void MPCI_Fatal(
   rtems_fatal_source source,
-  bool               is_internal,
+  bool               always_set_to_false,
   rtems_fatal_code   error
 )
 {
diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c
index 4c48c5b..b054e78 100644
--- a/cpukit/libmisc/stackchk/check.c
+++ b/cpukit/libmisc/stackchk/check.c
@@ -436,7 +436,7 @@ static bool Stack_check_Dump_threads_usage(
 #ifndef DONT_USE_FATAL_EXTENSION
   void rtems_stack_checker_fatal_extension(
     Internal_errors_Source  source,
-    bool                    is_internal,
+    bool                    always_set_to_false,
     uint32_t                status
   )
   {
diff --git a/cpukit/libmisc/testsupport/test.h b/cpukit/libmisc/testsupport/test.h
index b4adebf..a32e2c4 100644
--- a/cpukit/libmisc/testsupport/test.h
+++ b/cpukit/libmisc/testsupport/test.h
@@ -47,7 +47,7 @@ extern rtems_printer rtems_test_printer;
  */
 void rtems_test_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 );
 
diff --git a/cpukit/libmisc/testsupport/testextension.c b/cpukit/libmisc/testsupport/testextension.c
index 43f79bc..afb87e9 100644
--- a/cpukit/libmisc/testsupport/testextension.c
+++ b/cpukit/libmisc/testsupport/testextension.c
@@ -27,7 +27,7 @@ RTEMS_INTERRUPT_LOCK_DEFINE( static, report_lock, "test report" )
 
 void rtems_test_fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
@@ -68,6 +68,6 @@ void rtems_test_fatal_extension(
 #endif
 
   (void) source;
-  (void) is_internal;
+  (void) always_set_to_false;
   (void) code;
 }
diff --git a/cpukit/score/include/rtems/score/userext.h b/cpukit/score/include/rtems/score/userext.h
index 61de992..5af5824 100644
--- a/cpukit/score/include/rtems/score/userext.h
+++ b/cpukit/score/include/rtems/score/userext.h
@@ -195,14 +195,14 @@ typedef void( *User_extensions_thread_exitted_extension )(
  *
  * @param[in] source The fatal source indicating the subsystem the fatal
  * condition originated in.
- * @param[in] is_internal This parameter is always false and provide only for
- * backward compatibility reasons.
+ * @param[in] always_set_to_false This parameter is always set to false and
+ * provided only for backward compatibility reasons.
  * @param[in] code The fatal error code.  This value must be interpreted with
  * respect to the source.
  */
 typedef void( *User_extensions_fatal_extension )(
   Internal_errors_Source source,
-  bool                   is_internal,
+  bool                   always_set_to_false,
   Internal_errors_t      code
 );
 
diff --git a/testsuites/libtests/exit01/init.c b/testsuites/libtests/exit01/init.c
index b677c3a..0fd8d35 100644
--- a/testsuites/libtests/exit01/init.c
+++ b/testsuites/libtests/exit01/init.c
@@ -52,13 +52,13 @@ static void atexit_2(void)
 
 static void fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
   if (
     source == RTEMS_FATAL_SOURCE_EXIT
-      && !is_internal
+      && !always_set_to_false
       && error == EXIT_STATUS
       && counter == 3
   ) {
diff --git a/testsuites/libtests/exit02/init.c b/testsuites/libtests/exit02/init.c
index f185d0f..48248a5 100644
--- a/testsuites/libtests/exit02/init.c
+++ b/testsuites/libtests/exit02/init.c
@@ -37,13 +37,13 @@ static void atexit_not_reached(void)
 
 static void fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
   if (
     source == RTEMS_FATAL_SOURCE_EXIT
-      && !is_internal
+      && !always_set_to_false
       && error == EXIT_STATUS
   ) {
     TEST_END();
diff --git a/testsuites/libtests/stackchk/init.c b/testsuites/libtests/stackchk/init.c
index 4e1e41c..72e3c23 100644
--- a/testsuites/libtests/stackchk/init.c
+++ b/testsuites/libtests/stackchk/init.c
@@ -90,13 +90,13 @@ rtems_task Init(
 
 void Fatal_extension(
   rtems_fatal_source source,
-  bool               is_internal,
+  bool               always_set_to_false,
   rtems_fatal_code   error
 )
 {
   if ( source != RTEMS_FATAL_SOURCE_STACK_CHECKER ) {
     printk( "unexpected fatal source\n" );
-  } else if ( is_internal ) {
+  } else if ( always_set_to_false ) {
     printk( "unexpected fatal is internal\n" );
   } else if ( error != rtems_build_name( 'T', 'A', '1', ' ' ) ) {
     printk( "unexpected fatal error\n" );
diff --git a/testsuites/libtests/stackchk/system.h b/testsuites/libtests/stackchk/system.h
index 96f56fb..225a5d3 100644
--- a/testsuites/libtests/stackchk/system.h
+++ b/testsuites/libtests/stackchk/system.h
@@ -44,7 +44,7 @@ void blow_stack( void );
 
 void Fatal_extension(
   rtems_fatal_source source,
-  bool               is_internal,
+  bool               always_set_to_false,
   rtems_fatal_code   error
 );
 
diff --git a/testsuites/psxtests/psxfatal_support/init.c b/testsuites/psxtests/psxfatal_support/init.c
index bc48b95..d639d17 100644
--- a/testsuites/psxtests/psxfatal_support/init.c
+++ b/testsuites/psxtests/psxfatal_support/init.c
@@ -62,7 +62,7 @@ void Put_Source( rtems_fatal_source source )
 
 void Fatal_extension(
   rtems_fatal_source source,
-  bool               is_internal,
+  bool               always_set_to_false,
   rtems_fatal_code   error
 )
 {
@@ -77,7 +77,7 @@ void Fatal_extension(
     printk( ")\n" );
   }
 
-  if ( is_internal )
+  if ( always_set_to_false )
     printk( "ERROR==> Fatal Extension is internal set to true expected false\n" );
 
   if ( error !=  FATAL_ERROR_EXPECTED_ERROR ) {
@@ -90,7 +90,7 @@ void Fatal_extension(
 
   if (
     source == FATAL_ERROR_EXPECTED_SOURCE
-      && !is_internal
+      && !always_set_to_false
       && error == FATAL_ERROR_EXPECTED_ERROR
   ) {
     TEST_END();
diff --git a/testsuites/psxtests/psxfatal_support/system.h b/testsuites/psxtests/psxfatal_support/system.h
index 4a6e5d9..c825a4a 100644
--- a/testsuites/psxtests/psxfatal_support/system.h
+++ b/testsuites/psxtests/psxfatal_support/system.h
@@ -36,7 +36,7 @@ void *POSIX_Init(
 
 void Fatal_extension(
   rtems_fatal_source source,
-  bool               is_internal,
+  bool               always_set_to_false,
   rtems_fatal_code   error
 );
 
diff --git a/testsuites/smptests/smpfatal01/init.c b/testsuites/smptests/smpfatal01/init.c
index e7f1597..457469f 100644
--- a/testsuites/smptests/smpfatal01/init.c
+++ b/testsuites/smptests/smpfatal01/init.c
@@ -42,7 +42,7 @@ static void Init(rtems_task_argument arg)
 
 static void fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
@@ -51,7 +51,7 @@ static void fatal_extension(
   if (source == RTEMS_FATAL_SOURCE_SMP) {
     uint32_t self = rtems_get_current_processor();
 
-    assert(!is_internal);
+    assert(!always_set_to_false);
     assert(code == SMP_FATAL_SHUTDOWN);
 
     if (self == main_cpu) {
diff --git a/testsuites/smptests/smpfatal02/init.c b/testsuites/smptests/smpfatal02/init.c
index ae075ec..3aa20e3 100644
--- a/testsuites/smptests/smpfatal02/init.c
+++ b/testsuites/smptests/smpfatal02/init.c
@@ -42,14 +42,14 @@ static void Init(rtems_task_argument arg)
 
 static void fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
   SMP_barrier_State barrier_state = SMP_BARRIER_STATE_INITIALIZER;
   uint32_t self = rtems_get_current_processor();
 
-  assert(!is_internal);
+  assert(!always_set_to_false);
 
   if ( source == RTEMS_FATAL_SOURCE_APPLICATION ) {
     uint32_t cpu;
diff --git a/testsuites/smptests/smpfatal03/init.c b/testsuites/smptests/smpfatal03/init.c
index 9f7c682..47f8598 100644
--- a/testsuites/smptests/smpfatal03/init.c
+++ b/testsuites/smptests/smpfatal03/init.c
@@ -67,13 +67,13 @@ static void Init( rtems_task_argument arg )
 
 static void fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
   if (
     source == INTERNAL_ERROR_CORE
-      && !is_internal
+      && !always_set_to_false
       && code == INTERNAL_ERROR_THREAD_QUEUE_ENQUEUE_STICKY_FROM_BAD_STATE
   ) {
     TEST_END();
diff --git a/testsuites/smptests/smpfatal04/init.c b/testsuites/smptests/smpfatal04/init.c
index ebfa849..e8b43d7 100644
--- a/testsuites/smptests/smpfatal04/init.c
+++ b/testsuites/smptests/smpfatal04/init.c
@@ -34,7 +34,7 @@ static void Init(rtems_task_argument arg)
 
 static void fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
@@ -42,7 +42,7 @@ static void fatal_extension(
 
   if (
     source == RTEMS_FATAL_SOURCE_SMP
-      && !is_internal
+      && !always_set_to_false
       && code == SMP_FATAL_BOOT_PROCESSOR_NOT_ASSIGNED_TO_SCHEDULER
   ) {
     TEST_END();
diff --git a/testsuites/smptests/smpfatal05/init.c b/testsuites/smptests/smpfatal05/init.c
index 1e1e535..506a62e 100644
--- a/testsuites/smptests/smpfatal05/init.c
+++ b/testsuites/smptests/smpfatal05/init.c
@@ -34,7 +34,7 @@ static void Init(rtems_task_argument arg)
 
 static void fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
@@ -42,7 +42,7 @@ static void fatal_extension(
 
   if (
     source == RTEMS_FATAL_SOURCE_SMP
-      && !is_internal
+      && !always_set_to_false
       && code == SMP_FATAL_MANDATORY_PROCESSOR_NOT_PRESENT
   ) {
     TEST_END();
diff --git a/testsuites/smptests/smpfatal06/init.c b/testsuites/smptests/smpfatal06/init.c
index f871112..0e363d1 100644
--- a/testsuites/smptests/smpfatal06/init.c
+++ b/testsuites/smptests/smpfatal06/init.c
@@ -36,13 +36,13 @@ static void Init(rtems_task_argument arg)
 
 static void fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
   if (
     source == INTERNAL_ERROR_CORE
-      && !is_internal
+      && !always_set_to_false
       && code == INTERNAL_ERROR_BAD_THREAD_DISPATCH_ENVIRONMENT
   ) {
     TEST_END();
diff --git a/testsuites/smptests/smpfatal08/init.c b/testsuites/smptests/smpfatal08/init.c
index 4b7aaf5..ee1f94c 100644
--- a/testsuites/smptests/smpfatal08/init.c
+++ b/testsuites/smptests/smpfatal08/init.c
@@ -91,7 +91,7 @@ static void Init(rtems_task_argument arg)
 
 static void fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
@@ -99,7 +99,7 @@ static void fatal_extension(
 
   if (
     source == RTEMS_FATAL_SOURCE_SMP
-      && !is_internal
+      && !always_set_to_false
       && code == SMP_FATAL_START_OF_MANDATORY_PROCESSOR_FAILED
   ) {
     TEST_END();
diff --git a/testsuites/sptests/sperror01/init.c b/testsuites/sptests/sperror01/init.c
index a84eaf9..fe3f304 100644
--- a/testsuites/sptests/sperror01/init.c
+++ b/testsuites/sptests/sperror01/init.c
@@ -25,13 +25,13 @@ rtems_task Init(rtems_task_argument argument);
 
 static void fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
   if (
     source == RTEMS_FATAL_SOURCE_EXIT
-      && !is_internal
+      && !always_set_to_false
       && error == ENOMEM
   ) {
     TEST_END();
diff --git a/testsuites/sptests/sperror02/init.c b/testsuites/sptests/sperror02/init.c
index 0bb7cea..67fc56d 100644
--- a/testsuites/sptests/sperror02/init.c
+++ b/testsuites/sptests/sperror02/init.c
@@ -25,13 +25,13 @@ rtems_task Init(rtems_task_argument argument);
 
 static void fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
   if (
     source == RTEMS_FATAL_SOURCE_EXIT
-      && !is_internal
+      && !always_set_to_false
       && error == 1
   ) {
     TEST_END();
diff --git a/testsuites/sptests/sperror03/init.c b/testsuites/sptests/sperror03/init.c
index aecdb79..448848d 100644
--- a/testsuites/sptests/sperror03/init.c
+++ b/testsuites/sptests/sperror03/init.c
@@ -22,13 +22,13 @@ rtems_task Init(rtems_task_argument argument);
 
 static void fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
   if (
     source == RTEMS_FATAL_SOURCE_EXIT
-      && !is_internal
+      && !always_set_to_false
       && error == 0
   ) {
     TEST_END();
diff --git a/testsuites/sptests/spextensions01/init.c b/testsuites/sptests/spextensions01/init.c
index 1d68255..ceb9f60 100644
--- a/testsuites/sptests/spextensions01/init.c
+++ b/testsuites/sptests/spextensions01/init.c
@@ -142,7 +142,7 @@ static void zero_thread_exitted(rtems_tcb *a)
 
 static void zero_fatal(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
@@ -201,7 +201,7 @@ static void one_thread_exitted(rtems_tcb *a)
 
 static void one_fatal(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
@@ -260,7 +260,7 @@ static void two_thread_exitted(rtems_tcb *a)
 
 static void two_fatal(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
@@ -321,7 +321,7 @@ static void three_thread_exitted(rtems_tcb *a)
 
 static void three_fatal(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
diff --git a/testsuites/sptests/spfatal26/init.c b/testsuites/sptests/spfatal26/init.c
index 4013b94..7d20438 100644
--- a/testsuites/sptests/spfatal26/init.c
+++ b/testsuites/sptests/spfatal26/init.c
@@ -61,12 +61,12 @@ static void Init( rtems_task_argument arg )
 
 static void fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code code
 )
 {
   rtems_test_assert( source == RTEMS_FATAL_SOURCE_EXCEPTION );
-  rtems_test_assert( !is_internal );
+  rtems_test_assert( !always_set_to_false );
 
   rtems_exception_frame_print( (const rtems_exception_frame *) code );
 
diff --git a/testsuites/sptests/spfatal_support/init.c b/testsuites/sptests/spfatal_support/init.c
index aa49a30..f9b2ed3 100644
--- a/testsuites/sptests/spfatal_support/init.c
+++ b/testsuites/sptests/spfatal_support/init.c
@@ -65,7 +65,7 @@ static bool is_expected_error( rtems_fatal_code error )
 
 void Fatal_extension(
   rtems_fatal_source source,
-  bool               is_internal,
+  bool               always_set_to_false,
   rtems_fatal_code   error
 )
 {
@@ -80,7 +80,7 @@ void Fatal_extension(
     printk( ")\n" );
   }
 
-  if ( is_internal )
+  if ( always_set_to_false )
     printk(
       "ERROR==> Fatal Extension is internal set to true expected false\n"
     );
@@ -97,7 +97,7 @@ void Fatal_extension(
 
   if (
     source == FATAL_ERROR_EXPECTED_SOURCE
-      && !is_internal
+      && !always_set_to_false
       && is_expected_error( error )
   ) {
     TEST_END();
diff --git a/testsuites/sptests/spfatal_support/system.h b/testsuites/sptests/spfatal_support/system.h
index 0a01e21..ee32428 100644
--- a/testsuites/sptests/spfatal_support/system.h
+++ b/testsuites/sptests/spfatal_support/system.h
@@ -28,7 +28,7 @@ rtems_task Init(
 
 void Fatal_extension(
   rtems_fatal_source source,
-  bool               is_internal,
+  bool               always_set_to_false,
   rtems_fatal_code   error
 );
 
diff --git a/testsuites/sptests/spinternalerror01/init.c b/testsuites/sptests/spinternalerror01/init.c
index 6201aff..21e42e3 100644
--- a/testsuites/sptests/spinternalerror01/init.c
+++ b/testsuites/sptests/spinternalerror01/init.c
@@ -35,13 +35,17 @@ void boot_card( const char *cmdline )
 
 static void fatal_extension(
   Internal_errors_Source source,
-  bool is_internal,
+  bool always_set_to_false,
   Internal_errors_t error
 )
 {
   TEST_BEGIN();
 
-  if ( source == FATAL_SOURCE && !is_internal && error == FATAL_ERROR ) {
+  if (
+    source == FATAL_SOURCE
+      && !always_set_to_false
+      && error == FATAL_ERROR
+  ) {
     TEST_END();
   }
 }
diff --git a/testsuites/sptests/spmutex01/init.c b/testsuites/sptests/spmutex01/init.c
index 72e458f..0c216a3 100644
--- a/testsuites/sptests/spmutex01/init.c
+++ b/testsuites/sptests/spmutex01/init.c
@@ -689,14 +689,14 @@ static void Init(rtems_task_argument arg)
 
 static void fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
 
   if (
     source == INTERNAL_ERROR_CORE
-      && !is_internal
+      && !always_set_to_false
       && error == INTERNAL_ERROR_THREAD_QUEUE_DEADLOCK
   ) {
     test_context *ctx = &test_instance;
diff --git a/testsuites/sptests/spsyslock01/init.c b/testsuites/sptests/spsyslock01/init.c
index 1e0d4818..815579a 100644
--- a/testsuites/sptests/spsyslock01/init.c
+++ b/testsuites/sptests/spsyslock01/init.c
@@ -686,14 +686,14 @@ static void Init(rtems_task_argument arg)
 
 static void fatal_extension(
   rtems_fatal_source source,
-  bool is_internal,
+  bool always_set_to_false,
   rtems_fatal_code error
 )
 {
 
   if (
     source == INTERNAL_ERROR_CORE
-      && !is_internal
+      && !always_set_to_false
       && error == INTERNAL_ERROR_THREAD_QUEUE_DEADLOCK
   ) {
     test_context *ctx = &test_instance;




More information about the vc mailing list