RTEMS 6.1-rc4
|
RTEMS Error Reporting. More...
Go to the source code of this file.
Typedefs | |
typedef Internal_errors_t | rtems_error_code_t |
Functions | |
int | rtems_error (rtems_error_code_t error_code, const char *printf_format,...) |
Report an Error. | |
int | rtems_verror (rtems_error_code_t error_code, const char *printf_format, va_list arglist) |
Report an Error. | |
Variables | |
int | rtems_panic_in_progress |
RTEMS Error Reporting.
Defines and externs for rtems error reporting
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 1:
Example 2:
Example 3:
int rtems_error | ( | rtems_error_code_t | error_code, |
const char * | printf_format, | ||
... | |||
) |
Report an Error.
[in] | error_code | 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 |
[in] | printf_format | is a normal printf(3) format string, with its concommitant arguments |
int rtems_verror | ( | rtems_error_code_t | error_code, |
const char * | printf_format, | ||
va_list | arglist | ||
) |
Report an Error.
[in] | error_code | 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 |
[in] | printf_format | is a normal printf(3) format string, with its concommitant arguments |
[in] | arglist | is a varargs list corresponding to printf_format |