Panic handler. More...
Functions | |
void | NUTPANIC (const char *fmt,...) |
This function is called on fatal errors. |
Panic handler.
* $Id: panic.c 4473 2012-08-20 15:12:45Z haraldkipp $ *
void NUTPANIC | ( | const char * | fmt, |
... | |||
) |
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.
fmt | Format string containing conversion specifications. |
References NutEnterCritical, stdout, and vfprintf().
Referenced by NUTFATAL(), and NutHeapRootFree().