From f2f39b62a284afefbf8f1840255602162a9b2a01 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 7 Jan 2013 16:01:45 +0100 Subject: sapi: Add rtems_fatal_source_description() --- cpukit/sapi/include/rtems/fatal.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cpukit/sapi/include/rtems') diff --git a/cpukit/sapi/include/rtems/fatal.h b/cpukit/sapi/include/rtems/fatal.h index 64344b36b8..46a7ab9574 100644 --- a/cpukit/sapi/include/rtems/fatal.h +++ b/cpukit/sapi/include/rtems/fatal.h @@ -82,6 +82,16 @@ void rtems_fatal( rtems_fatal_code error ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; +/** + * @brief Returns a description for a fatal source. + * + * @param[in] source The fatal source. + * + * @return The fatal source description or "?" in case the passed fatal source + * is invalid. + */ +const char *rtems_fatal_source_description( rtems_fatal_source source ); + /** * @brief Returns a description for an internal error code. * -- cgit v1.2.3