diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-07 09:53:47 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-12 09:18:00 +0100 |
commit | bab16de2671cc5b35e3df9b343e8645b632e3b1d (patch) | |
tree | f397b31d5a5c2f87e5c3aee69f6cfb39738f7ac2 /cpukit/sapi/src/fatalsrctext.c | |
parent | sparc: Save/restore only non-volatile context (diff) | |
download | rtems-bab16de2671cc5b35e3df9b343e8645b632e3b1d.tar.bz2 |
score: Change debug helper functions
Rename rtems_internal_error_description() to
rtems_internal_error_text(). Rename rtems_fatal_source_description() to
rtems_fatal_source_text(). Rename rtems_status_code_description() to
rtems_status_text(). Remove previous implementation of
rtems_status_text().
Diffstat (limited to '')
-rw-r--r-- | cpukit/sapi/src/fatalsrctext.c (renamed from cpukit/sapi/src/fatalsrcdesc.c) | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cpukit/sapi/src/fatalsrcdesc.c b/cpukit/sapi/src/fatalsrctext.c index fbe8485853..902a269b59 100644 --- a/cpukit/sapi/src/fatalsrcdesc.c +++ b/cpukit/sapi/src/fatalsrctext.c @@ -1,16 +1,16 @@ /** * @file * - * @brief Implementation of rtems_fatal_source_description() + * @brief Implementation of rtems_fatal_source_text() * * @ingroup ClassicFatal */ /* - * Copyright (c) 2013 embedded brains GmbH. All rights reserved. + * Copyright (c) 2013-2014 embedded brains GmbH. All rights reserved. * * embedded brains GmbH - * Obere Lagerstr. 30 + * Dornierstr. 4 * 82178 Puchheim * Germany * <rtems@embedded-brains.de> @@ -26,7 +26,7 @@ #include <rtems/fatal.h> -static const char *const fatal_source_desc [] = { +static const char *const fatal_source_text[] = { "INTERNAL_ERROR_CORE", "INTERNAL_ERROR_RTEMS_API", "INTERNAL_ERROR_POSIX_API", @@ -40,14 +40,14 @@ static const char *const fatal_source_desc [] = { "RTEMS_FATAL_SOURCE_EXCEPTION" }; -const char *rtems_fatal_source_description( rtems_fatal_source source ) +const char *rtems_fatal_source_text( rtems_fatal_source source ) { size_t i = source; - const char *desc = "?"; + const char *text = "?"; - if ( i < RTEMS_ARRAY_SIZE( fatal_source_desc ) ) { - desc = fatal_source_desc [i]; + if ( i < RTEMS_ARRAY_SIZE( fatal_source_text ) ) { + text = fatal_source_text[ i ]; } - return desc; + return text; } |