Nut/OS  4.10.3
API Reference
nutdebug.h File Reference
#include <cfg/memory.h>
#include <sys/types.h>
Include dependency graph for nutdebug.h:

Go to the source code of this file.

Defines

#define NUTASSERT(c)

Functions

void NUTPANIC (CONST char *fmt,...)
 This function is called on fatal errors.
void NUTFATAL (CONST char *, CONST char *, int, CONST char *)
 This function is called on fatal errors.

Define Documentation

#define NUTASSERT (   c)

Definition at line 47 of file nutdebug.h.

Referenced by _close(), _filelength(), _fileno(), _fmode(), _ioctl(), _open(), _read(), _seek(), _tell(), _write(), _write_P(), At45dNodeStatus(), At45dNodeTransfer(), At91SpiBus0Deselect(), At91SpiBus0Select(), At91SpiBus0Transfer(), At91SpiBusNodeInit(), At91SpiSetup(), Avr32SpiBus0Deselect(), Avr32SpiBus0Select(), Avr32SpiBus0Transfer(), Avr32SpiBus1Deselect(), Avr32SpiBus1Select(), Avr32SpiBus1Transfer(), Avr32SpiBusNodeInit(), Avr32SpiSetup(), AvrSpiBus0Deselect(), AvrSpiBus0NodeInit(), AvrSpiBus0Select(), AvrSpiBus0Transfer(), feof(), ferror(), fflush(), fgetc(), fgets(), findenv(), fprintf(), fpurge(), fputc(), fputs(), fputs_P(), fread(), fscanf(), fseek(), ftell(), fwrite(), fwrite_P(), gets(), GpioSpiBus0Deselect(), GpioSpiBus0NodeInit(), GpioSpiBus0Select(), GpioSpiBus0Transfer(), LiLiClean(), LiLiFindItem(), LiLiInsertItemAfterNode(), LiLiInsertItemBeforeNode(), LiLiLocateItem(), LiLiNodes(), LiLiPopItem(), LiLiPushItem(), LiLiRemoveNode(), localtime_r(), NplSpiBusDeselect(), NplSpiBusNodeInit(), NplSpiBusPollTransfer(), NplSpiBusSelect(), NutBlockDeviceClose(), NutBlockDeviceInit(), NutBlockDeviceIOCtl(), NutBlockDeviceOpen(), NutBlockDeviceRead(), NutBlockDeviceSize(), NutBlockDeviceWrite(), NutBlockDeviceWrite_P(), NutDeviceLookup(), NutEventBroadcastAsync(), NutEventPostAsync(), NutEventTimeout(), NutEventWait(), NutEventWaitNext(), NutLoadConfig(), NutMutexDestroy(), NutMutexInit(), NutMutexLock(), NutMutexTrylock(), NutMutexUnlock(), NutNetBufAlloc(), NutNetBufClonePart(), NutNetBufFree(), NutRegisterDevice(), NutRegisterKey(), NutRegisterSpiDevice(), NutSaveConfig(), NutSemDestroy(), NutSemInit(), NutSemPost(), NutSemTryWait(), NutSetLed(), NutSmtpDisconnect(), NutSmtpLogin(), NutSmtpReceiveResponse(), NutSmtpSendCommand(), NutSmtpSendEncodedLines(), NutSmtpSendMail(), NutSmtpSendMailHeader(), NutSmtpSendMailRequest(), NutThreadAddPriQueue(), NutThreadWake(), NutTimerInsert(), NutTimerStop(), PerCiAttachReader(), PerCiClose(), PerCiDetachReader(), PerCiFlush(), PerCiInit(), PerCiOpen(), PerCiRead(), PerCiReadLine(), PerCiWrite(), PerCiWriteFormat(), PerCiWriteVarList(), printf(), putenv(), RawFsFileClose(), RawFsFileRead(), RawFsFileWrite(), RawFsMount(), RawFsUnmount(), scanf(), Spi7segDot(), Spi7segInit(), Spi7SegOpen(), Spi7SegPush(), Spi7segPutc(), Spi7segWrite(), SpiAt45dCommand(), SpiAt45dInit(), SpiAt45dIOCtl(), SpiAt45dPageErase(), SpiAt45dPageRead(), SpiAt45dPages(), SpiAt45dPageSize(), SpiAt45dPageWrite(), SpiAt45dStatus(), SpiAt45dWaitReady(), SpiMmcBlockRead(), SpiMmcBlockWrite(), SpiMmcUnmount(), sprintf(), sys_key(), sys_led(), UFlashAttach(), UFlashDetach(), UFlashFormat(), ungetc(), vfprintf(), and vfprintf_P().


Function Documentation

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.

Parameters:
fmtFormat string containing conversion specifications.

Definition at line 63 of file panic.c.

References NutEnterCritical, stdout, and vfprintf().

Referenced by NUTFATAL(), and NutHeapRootFree().

Here is the call graph for this function:

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.

Parameters:
funcName of the function or thread, where the error has been detected.
fileName of the source file, that contains the function.
lineLine number within the source file.
expectedAssertion which should have been true, but is not.

Definition at line 66 of file fatal.c.

References NUTPANIC().

Here is the call graph for this function: