mirror of
https://github.com/Binary-Coalescence/motorDSM.git
synced 2025-08-06 22:35:39 -05:00
Restore errlogPrintf in debug messages.
This commit is contained in:
@@ -29,25 +29,18 @@ extern struct driver_table MCB4B_access;
|
||||
#define NINT(f) (long)((f)>0 ? (f)+0.5 : (f)-0.5)
|
||||
|
||||
#ifdef __GNUG__
|
||||
#ifdef DEBUG
|
||||
#ifdef DEBUG
|
||||
volatile int devMCB4BDebug = 0;
|
||||
#define Debug(l, f, args...) { if(l<=devMCB4BDebug) printf(f,## args); }
|
||||
#define Debug(L, FMT, V...) { if(L <= devMCB4BDebug) \
|
||||
{ errlogPrintf("%s(%d):",__FILE__,__LINE__); \
|
||||
errlogPrintf(FMT,##V); } }
|
||||
#else
|
||||
#define Debug(l, f, args...)
|
||||
#define Debug(L, FMT, V...)
|
||||
#endif
|
||||
#else
|
||||
#define Debug()
|
||||
#endif
|
||||
|
||||
/*
|
||||
#ifdef NODEBUG
|
||||
#define Debug(L,FMT,V) ;
|
||||
#else
|
||||
#define Debug(L,FMT,V...) { if(L <= devMCB4BDebug) \
|
||||
{ errlogPrintf("%s(%d):",__FILE__,__LINE__); \
|
||||
errlogPrintf(FMT,##V); } }
|
||||
#endif
|
||||
*/
|
||||
|
||||
/* Debugging levels:
|
||||
* devMCB4BDebug >= 3 Print new part of command and command string so far
|
||||
|
Reference in New Issue
Block a user