summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libmisc/error
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-01-15 21:50:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-01-15 21:50:28 +0000
commitc64e4ed48285a0c944905bc02de89c20038f428b (patch)
tree7804e08b98cb9e6b9ac4de5e010c6fb70f9a011b /c/src/lib/libmisc/error
parentchanges remerged after lost in disk crash -- recovered from snapshot, partial... (diff)
downloadrtems-c64e4ed48285a0c944905bc02de89c20038f428b.tar.bz2
updates from Tony Bennett for PA and UNIX ports
Diffstat (limited to 'c/src/lib/libmisc/error')
-rw-r--r--c/src/lib/libmisc/error/error.c15
-rw-r--r--c/src/lib/libmisc/error/error.h14
2 files changed, 17 insertions, 12 deletions
diff --git a/c/src/lib/libmisc/error/error.c b/c/src/lib/libmisc/error/error.c
index 56224f2a56..f9cee777ae 100644
--- a/c/src/lib/libmisc/error/error.c
+++ b/c/src/lib/libmisc/error/error.c
@@ -1,10 +1,9 @@
/*
- * @(#)error.c 1.2 - 95/08/02
+ * @(#)error.c 1.6 - 95/12/12
*
*
- * report errors and panics to RTEMS' stderr.
- * Currently just used by RTEMS monitor.
- *
+ * report errors and panics to RTEMS' stderr.
+ * Currently just used by RTEMS monitor.
*
* $Id$
*/
@@ -97,7 +96,7 @@ rtems_assoc_t rtems_status_assoc[] = {
};
-char *
+const char *
rtems_status_text(
rtems_status_code status
)
@@ -108,7 +107,7 @@ rtems_status_text(
static int rtems_verror(
unsigned32 error_flag,
- char *printf_format,
+ const char *printf_format,
va_list arglist
)
{
@@ -181,7 +180,7 @@ static int rtems_verror(
int rtems_error(
int error_flag,
- char *printf_format,
+ const char *printf_format,
...
)
{
@@ -200,7 +199,7 @@ int rtems_error(
*/
void rtems_panic(
- char *printf_format,
+ const char *printf_format,
...
)
{
diff --git a/c/src/lib/libmisc/error/error.h b/c/src/lib/libmisc/error/error.h
index a41f0aa534..621ee16f65 100644
--- a/c/src/lib/libmisc/error/error.h
+++ b/c/src/lib/libmisc/error/error.h
@@ -1,5 +1,6 @@
+
/*
- * @(#)error.h 1.1 - 95/08/02
+ * @(#)error.h 1.3 - 95/10/25
*
*
* Defines and externs for rtems error reporting
@@ -7,6 +8,9 @@
* $Id$
*/
+#ifndef __RTEMS_ERROR_h
+#define __RTEMS_ERROR_h
+
/*
* rtems_error() and rtems_panic() support
*/
@@ -18,9 +22,11 @@
#define RTEMS_ERROR_MASK (RTEMS_ERROR_ERRNO | RTEMS_ERROR_ABORT | \
RTEMS_ERROR_PANIC) /* all */
-char *rtems_status_text(rtems_status_code);
-int rtems_error(int error_code, char *printf_format, ...);
-void rtems_panic(char *printf_format, ...);
+const char *rtems_status_text(rtems_status_code);
+int rtems_error(int error_code, const char *printf_format, ...);
+void rtems_panic(const char *printf_format, ...);
extern int rtems_panic_in_progress;
+#endif
+/* end of include file */