Changeset 519 for GPL/branches/uniaud32-2.1.x/include/dbgos2.h
- Timestamp:
- Jul 20, 2010, 5:52:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.1.x/include/dbgos2.h
r504 r519 32 32 extern int wrOffset; 33 33 extern char *szprintBuf; 34 //void _cdecl DP D(int level,char *x, ...) ; /* not debugging: nothing */35 void _cdecl DPE(char *x, ...) ; /* not debugging: nothing */ 34 //void _cdecl DPE(char *x, ...) ; /* not debugging: nothing */ 35 int _cdecl printk(const char * fmt, ...); 36 36 #ifdef __cplusplus 37 37 } 38 38 #endif 39 39 40 40 41 /* rprintf always prints to the log buffer, and to SIO if enabled */ 41 #define rprintf(a) DPEa42 #define rprintf(a) printk a 42 43 43 44 /* the dprintf functions only print if DEBUG is defined */ 44 45 #ifdef DEBUG 45 46 #define DBG_MAX_BUF_SIZE 0x100000 46 #define dprintf(a) DPEa47 #define dprintf1(a) if(DebugLevel > 0) DPEa48 #define dprintf2(a) if(DebugLevel > 1) DPEa49 #define dprintf3(a) if(DebugLevel > 2) DPEa47 #define dprintf(a) printk a 48 #define dprintf1(a) if(DebugLevel > 0) printk a 49 #define dprintf2(a) if(DebugLevel > 1) printk a 50 #define dprintf3(a) if(DebugLevel > 2) printk a 50 51 #define DebugInt3() ; //_asm int 3 51 52 //#define DebInt3() _asm int 3;
Note:
See TracChangeset
for help on using the changeset viewer.