Changeset bab16de2 in rtems for cpukit/sapi
- Timestamp:
- 02/07/14 08:53:47 (10 years ago)
- Branches:
- 4.11, 5, master
- Children:
- e11d928
- Parents:
- 97cf623d
- git-author:
- Sebastian Huber <sebastian.huber@…> (02/07/14 08:53:47)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (02/12/14 08:18:00)
- Location:
- cpukit/sapi
- Files:
-
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
cpukit/sapi/Makefile.am
r97cf623d rbab16de2 30 30 src/rtemsapi.c src/extensiondata.c src/getversionstring.c \ 31 31 src/chainappendnotify.c src/chaingetnotify.c src/chaingetwait.c \ 32 src/chainprependnotify.c src/rbheap.c src/interr desc.c \33 src/fatal2.c src/fatalsrc desc.c32 src/chainprependnotify.c src/rbheap.c src/interrtext.c \ 33 src/fatal2.c src/fatalsrctext.c 34 34 libsapi_a_SOURCES += src/chainsmp.c 35 35 libsapi_a_CPPFLAGS = $(AM_CPPFLAGS) -
cpukit/sapi/include/rtems/fatal.h
r97cf623d rbab16de2 87 87 88 88 /** 89 * @brief Returns a description for a fatal source. 89 * @brief Returns a text for a fatal source. 90 * 91 * The text for each fatal source is the enumerator constant. 90 92 * 91 93 * @param[in] source is the fatal source. 92 94 * 93 * @retval description The fatal source description.94 * @retval ?The passed fatal source is invalid.95 * @retval text The fatal source text. 96 * @retval "?" The passed fatal source is invalid. 95 97 */ 96 const char *rtems_fatal_source_ description( rtems_fatal_source source );98 const char *rtems_fatal_source_text( rtems_fatal_source source ); 97 99 98 100 /** 99 * @brief Returns a description for an internal error code. 101 * @brief Returns a text for an internal error code. 102 * 103 * The text for each internal error code is the enumerator constant. 100 104 * 101 105 * @param[in] error is the error code. 102 106 * 103 * @retval description The error code description.104 * @retval ?The passed error code is invalid.107 * @retval text The error code text. 108 * @retval "?" The passed error code is invalid. 105 109 */ 106 const char *rtems_internal_error_ description( rtems_fatal_code error );110 const char *rtems_internal_error_text( rtems_fatal_code error ); 107 111 108 112 /** @} */ -
cpukit/sapi/src/fatalsrctext.c
r97cf623d rbab16de2 2 2 * @file 3 3 * 4 * @brief Implementation of rtems_fatal_source_ description()4 * @brief Implementation of rtems_fatal_source_text() 5 5 * 6 6 * @ingroup ClassicFatal … … 8 8 9 9 /* 10 * Copyright (c) 2013 embedded brains GmbH. All rights reserved.10 * Copyright (c) 2013-2014 embedded brains GmbH. All rights reserved. 11 11 * 12 12 * embedded brains GmbH 13 * Obere Lagerstr. 3013 * Dornierstr. 4 14 14 * 82178 Puchheim 15 15 * Germany … … 27 27 #include <rtems/fatal.h> 28 28 29 static const char *const fatal_source_ desc[] = {29 static const char *const fatal_source_text[] = { 30 30 "INTERNAL_ERROR_CORE", 31 31 "INTERNAL_ERROR_RTEMS_API", … … 41 41 }; 42 42 43 const char *rtems_fatal_source_ description( rtems_fatal_source source )43 const char *rtems_fatal_source_text( rtems_fatal_source source ) 44 44 { 45 45 size_t i = source; 46 const char * desc= "?";46 const char *text = "?"; 47 47 48 if ( i < RTEMS_ARRAY_SIZE( fatal_source_ desc) ) {49 desc = fatal_source_desc [i];48 if ( i < RTEMS_ARRAY_SIZE( fatal_source_text ) ) { 49 text = fatal_source_text[ i ]; 50 50 } 51 51 52 return desc;52 return text; 53 53 } -
cpukit/sapi/src/interrtext.c
r97cf623d rbab16de2 2 2 * @file 3 3 * 4 * @brief Returns a descriptionfor an internal error code.4 * @brief Returns a text for an internal error code. 5 5 * 6 6 * @ingroup ClassicFatal … … 8 8 9 9 /* 10 * Copyright (c) 2012 embedded brains GmbH. All rights reserved.10 * Copyright (c) 2012-2014 embedded brains GmbH. All rights reserved. 11 11 * 12 12 * embedded brains GmbH 13 * Obere Lagerstr. 3013 * Dornierstr. 4 14 14 * 82178 Puchheim 15 15 * Germany … … 27 27 #include <rtems/fatal.h> 28 28 29 static const char *const internal_error_ desc[] = {29 static const char *const internal_error_text[] = { 30 30 "INTERNAL_ERROR_NO_CONFIGURATION_TABLE", 31 31 "INTERNAL_ERROR_NO_CPU_TABLE", … … 55 55 }; 56 56 57 const char *rtems_internal_error_ description( rtems_fatal_code error )57 const char *rtems_internal_error_text( rtems_fatal_code error ) 58 58 { 59 59 size_t i = error; 60 const char * desc= "?";60 const char *text = "?"; 61 61 62 if ( i < RTEMS_ARRAY_SIZE( internal_error_ desc) ) {63 desc = internal_error_desc [i];62 if ( i < RTEMS_ARRAY_SIZE( internal_error_text ) ) { 63 text = internal_error_text[ i ]; 64 64 } 65 65 66 return desc;66 return text; 67 67 }
Note: See TracChangeset
for help on using the changeset viewer.