nutdebug.h File Reference

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 (  ) 

Definition at line 47 of file nutdebug.h.

Referenced by _close(), _filelength(), _fileno(), _fmode(), _ioctl(), _open(), _read(), _seek(), _tell(), _write(), _write_P(), At91SpiBus0Deselect(), At91SpiBus0Select(), At91SpiBus0Transfer(), At91SpiBusNodeInit(), At91SpiSetup(), AvrSpiBus0Deselect(), AvrSpiBus0NodeInit(), AvrSpiBus0Select(), AvrSpiBus0Transfer(), display_7seg(), dot_7seg(), feof(), ferror(), fflush(), fgetc(), fgets(), findenv(), fprintf(), fpurge(), fputc(), fputs(), fputs_P(), fread(), fscanf(), fseek(), ftell(), fwrite(), fwrite_P(), gets(), GpioSpiBus0Deselect(), GpioSpiBus0NodeInit(), GpioSpiBus0Select(), GpioSpiBus0Transfer(), 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(), NutNetBufClone(), NutNetBufFree(), NutRegisterDevice(), NutRegisterKey(), NutRegisterSpiDevice(), NutSaveConfig(), NutSemDestroy(), NutSemInit(), NutSemPost(), NutSemTryWait(), NutSetLed(), NutThreadAddPriQueue(), NutThreadWake(), NutTimerInsert(), NutTimerStop(), print_7seg(), printf(), putenv(), RawFsFileClose(), RawFsFileRead(), RawFsFileWrite(), RawFsMount(), RawFsUnmount(), scanf(), Spi7segInit(), SpiAt45dCommand(), SpiAt45dConfigSize(), SpiAt45dInit(), SpiAt45dIOCtl(), SpiAt45dPageErase(), SpiAt45dPageRead(), SpiAt45dPages(), SpiAt45dPageSize(), SpiAt45dPageWrite(), SpiAt45dStatus(), SpiAt45dWaitReady(), sprintf(), sys_key(), sys_led(), 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:
fmt Format string containing conversion specifications.

Definition at line 63 of file panic.c.

References NutEnterCritical, stdout, and vfprintf().

Referenced by NUTFATAL(), and NutHeapRootFree().

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:
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().


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/