diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-11-13 17:40:33 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-11-15 15:33:11 +0100 |
commit | dc6e830c108996c43e9267f05a51b7299dd3e6f9 (patch) | |
tree | fb18e0a10ef689e15aaa6054a25ab6bc3ee3eb00 /cpukit/sapi/include/rtems/fatal.h | |
parent | sapi: Add rtems_fatal_source and rtems_fatal_code (diff) | |
download | rtems-dc6e830c108996c43e9267f05a51b7299dd3e6f9.tar.bz2 |
sapi: Add and use rtems_internal_error_description
Diffstat (limited to '')
-rw-r--r-- | cpukit/sapi/include/rtems/fatal.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpukit/sapi/include/rtems/fatal.h b/cpukit/sapi/include/rtems/fatal.h index 4ddb578c91..8f646a9417 100644 --- a/cpukit/sapi/include/rtems/fatal.h +++ b/cpukit/sapi/include/rtems/fatal.h @@ -23,6 +23,7 @@ #define _RTEMS_FATAL_H #include <rtems/score/basedefs.h> /* RTEMS_COMPILER_NO_RETURN_ATTRIBUTE */ +#include <rtems/extension.h> #ifdef __cplusplus extern "C" { @@ -42,6 +43,16 @@ void rtems_fatal_error_occurred( uint32_t the_error ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; +/** + * @brief Returns a description for an internal error code. + * + * @param[in] error The error code. + * + * @return The error code description or "?" in case the passed error code is + * invalid. + */ +const char *rtems_internal_error_description( rtems_fatal_code error ); + #ifdef __cplusplus } #endif |