summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/error.c
diff options
context:
space:
mode:
authorAlex Ivanov <alexivanov97@gmail.com>2012-12-11 16:51:08 -0500
committerGedare Bloom <gedare@rtems.org>2012-12-11 16:51:08 -0500
commit17c6ad6a01a7ace26decff61b20bdada797ed782 (patch)
tree03fae4f8f30ceee2a6691fc3cc001019c31c099b /cpukit/libcsupport/src/error.c
parentlibcsupport: GCI Doxygen Task #7 (diff)
downloadrtems-17c6ad6a01a7ace26decff61b20bdada797ed782.tar.bz2
libcsupport: Doxygen enhancement GCI task #4
http://www.google-melange.com/gci/task/view/google/gci2012/8009205
Diffstat (limited to 'cpukit/libcsupport/src/error.c')
-rw-r--r--cpukit/libcsupport/src/error.c55
1 files changed, 5 insertions, 50 deletions
diff --git a/cpukit/libcsupport/src/error.c b/cpukit/libcsupport/src/error.c
index f8d2e40255..a77dfbbb34 100644
--- a/cpukit/libcsupport/src/error.c
+++ b/cpukit/libcsupport/src/error.c
@@ -1,46 +1,14 @@
-/*
- * report errors and panics to RTEMS' stderr.
- * Currently just used by RTEMS monitor.
+/**
+ * @file
+ *
+ * @brief Error and Panic Report Support
+ * @ingroup ErrorPanicSupport
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
-/*
- * These routines provide general purpose error reporting.
- * rtems_error reports an error to stderr and allows use of
- * printf style formatting. A newline is appended to all messages.
- *
- * error_flag can be specified as any of the following:
- *
- * RTEMS_ERROR_ERRNO -- include errno text in output
- * RTEMS_ERROR_PANIC -- halts local system after output
- * RTEMS_ERROR_ABORT -- abort after output
- *
- * It can also include a rtems_status value which can be OR'd
- * with the above flags. *
- *
- * EXAMPLE
- * #include <rtems.h>
- * #include <rtems/error.h>
- * rtems_error(0, "stray interrupt %d", intr);
- *
- * EXAMPLE
- * if ((status = rtems_task_create(...)) != RTEMS_SUCCCESSFUL)
- * {
- * rtems_error(status | RTEMS_ERROR_ABORT,
- * "could not create task");
- * }
- *
- * EXAMPLE
- * if ((fd = open(pathname, O_RDNLY)) < 0)
- * {
- * rtems_error(RTEMS_ERROR_ERRNO, "open of '%s' failed", pathname);
- * goto failed;
- * }
- */
-
/* This is always defined on RTEMS Scheduler Simulator and thus
* we get a redefined warning if this is not present.
*/
@@ -153,15 +121,6 @@ static int rtems_verror(
return chars_written;
}
-
-/*
- * Report an error.
- * error_flag is as above; printf_format is a normal
- * printf(3) format string, with its concommitant arguments.
- *
- * Returns the number of characters written.
- */
-
int rtems_error(
rtems_error_code_t error_flag,
const char *printf_format,
@@ -187,10 +146,6 @@ int rtems_error(
return chars_written;
}
-/*
- * rtems_panic is shorthand for rtems_error(RTEMS_ERROR_PANIC, ...)
- */
-
void rtems_panic(
const char *printf_format,
...