Defines
debug.h File Reference
#include "stdio.h"
Include dependency graph for debug.h:

Go to the source code of this file.

Defines

#define DEBUG   4
#define DEBUG1(...)   DEBUG_PRINTLINE("DEBUG1: ",__VA_ARGS__);
#define DEBUG2(...)   DEBUG_PRINTLINE("DEBUG2: ",__VA_ARGS__);
#define DEBUG3(...)   DEBUG_PRINTLINE("DEBUG3: ",__VA_ARGS__);
#define DEBUG4(...)   DEBUG_PRINTLINE("DEBUG4: ",__VA_ARGS__);
#define DEBUG_PRINTF(...)
#define DEBUG_PRINTLINE(pre,...)
#define PRINTF(...)
#define TBD(...)   DEBUG_PRINTLINE("TBD: ",__VA_ARGS__);

Define Documentation

#define DEBUG   4

The default debug level (if not specified in the file itself)

Definition at line 33 of file debug.h.

#define DEBUG1 (   ...)    DEBUG_PRINTLINE("DEBUG1: ",__VA_ARGS__);

Debug printing at level 1 debug. Usage: DEBUG1(("value %d",val));

Definition at line 91 of file debug.h.

#define DEBUG2 (   ...)    DEBUG_PRINTLINE("DEBUG2: ",__VA_ARGS__);

Debug printing at level 2 debug. Usage: DEBUG2("value %d",val);

Definition at line 99 of file debug.h.

#define DEBUG3 (   ...)    DEBUG_PRINTLINE("DEBUG3: ",__VA_ARGS__);

Debug printing at level 3 debug. Usage: DEBUG3("value %d",val);

Definition at line 107 of file debug.h.

#define DEBUG4 (   ...)    DEBUG_PRINTLINE("DEBUG4: ",__VA_ARGS__);

Debug printing at level 4 debug. Usage: DEBUG4("value %d",val);

Definition at line 115 of file debug.h.

#define DEBUG_PRINTF (   ...)

Where debug printfs should go to

Definition at line 40 of file debug.h.

#define DEBUG_PRINTLINE (   pre,
  ... 
)
Value:
{                                                    \
    DEBUG_PRINTF(pre );                                \
    DEBUG_PRINTF("%s:%d %s() ",                        \
                 __FILE__,__LINE__,__FUNCTION__);      \
    DEBUG_PRINTF( __VA_ARGS__ );                       \
  }

If the debug output should be pretty (a little nicer to read?), but this requires the allocation of some memory and the use of snprintf Prints file and line info.

Definition at line 52 of file debug.h.

#define PRINTF (   ...)

Info printing

Definition at line 75 of file debug.h.

#define TBD (   ...)    DEBUG_PRINTLINE("TBD: ",__VA_ARGS__);

Just a macro to indicate that something still needs to be done

Definition at line 82 of file debug.h.



ccny_asctec_firmware_2
Author(s): Ivan Dryanovski, Roberto G. Valenti
autogenerated on Tue Jan 7 2014 11:04:17