Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5299 in orxonox.OLD for trunk/src/defs


Ignore:
Timestamp:
Oct 7, 2005, 12:53:31 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: nicer DEBUG info in X11-style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/defs/debug.h

    r5183 r5299  
    112112#define PRINTF1 \
    113113    if (SOFT_DEBUG_LEVEL >= ERR) \
    114       printf("ERROR::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC
     114      printf("(EE)::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC
    115115#else
    116116#define PRINTF1 if (NO)
     
    120120#define PRINTF2 \
    121121     if (SOFT_DEBUG_LEVEL >= WARN) \
    122        printf("WARNING::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC
     122       printf("(WW)::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC
    123123
    124124#else
     
    129129#define PRINTF3 \
    130130     if (SOFT_DEBUG_LEVEL >= INFO) \
    131        printf("INFO::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC
     131       printf("(II)::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC
    132132#else
    133133#define PRINTF3 if (NO)
     
    137137#define PRINTF4 \
    138138     if (SOFT_DEBUG_LEVEL >= DEBUG) \
    139        printf("DEBUG::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC
     139       printf("(DD)::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC
    140140#else
    141141#define PRINTF4 if (NO)
     
    145145#define PRINTF5 \
    146146     if (SOFT_DEBUG_LEVEL >= vDEBUG) \
    147        printf("VERYDEBUG::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC
     147       printf("(VD)::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC
    148148#else
    149149#define PRINTF5 if (NO)
     
    208208#define PRINT5 \
    209209     if (SOFT_DEBUG_LEVEL >= vDEBUG) \
    210        PRINT_EXEC("VERYDEBUG::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC
     210       PRINT_EXEC
    211211#else
    212212#define PRINT5 if (NO)
Note: See TracChangeset for help on using the changeset viewer.