Fatal error handler. More...
Go to the source code of this file.
Functions | |
void | NUTFATAL (CONST char *func, CONST char *file, int line, CONST char *expected) |
This function is called on fatal errors. |
Fatal error handler.
* $Id: fatal.c 2458 2009-02-13 14:45:20Z haraldkipp $ *
Definition in file fatal.c.
void NUTFATAL | ( | CONST char * | func, |
CONST char * | file, | ||
int | line, | ||
CONST char * | expected | ||
) |
This function is called on fatal errors.
The function will enter a critical section and print a description of the problem to stdout. It is assumed, that stdout is available and has been assigned to a debug output device, such as devDebug or similar. Then the function will enter an endless loop, which freezes the system.
If this is not, what the application is expected to do on fatal errors or if no debug device has been assigned to stdout, the application must define its own version of this routine.
func | Name of the function or thread, where the error has been detected. |
file | Name of the source file, that contains the function. |
line | Line number within the source file. |
expected | Assertion which should have been true, but is not. |
Definition at line 66 of file fatal.c.
References NUTPANIC().