RTEMS CPU Kit with SuperCore
|
Error and Panic Report Support. More...
#include <rtems.h>
#include <rtems/error.h>
#include <rtems/assoc.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/threadimpl.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdarg.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Functions | |
int | rtems_verror (rtems_error_code_t error_flag, const char *printf_format, va_list arglist) |
Report an Error. More... | |
int | rtems_error (rtems_error_code_t error_flag, const char *printf_format,...) |
Report an Error. More... | |
void | rtems_panic (const char *printf_format,...) |
rtems_panic is shorthand for rtems_error(RTEMS_ERROR_PANIC, ...) | |
Variables | |
int | rtems_panic_in_progress |
Error and Panic Report Support.
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 |
References rtems_verror().
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 |
Referenced by rtems_error(), and rtems_panic().