Ignore:
Timestamp:
Jul 20, 2010, 5:52:49 PM (15 years ago)
Author:
David Azarewicz
Message:

Changes to PCI bus scan, malloc, cleanup all warnings, misc other changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-2.1.x/include/dbgos2.h

    r504 r519  
    3232extern int wrOffset;
    3333extern char *szprintBuf;
    34 //void _cdecl DPD(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 */
     35int _cdecl printk(const char * fmt, ...);
    3636#ifdef __cplusplus
    3737}
    3838#endif
    3939
     40
    4041/* rprintf always prints to the log buffer, and to SIO if enabled */
    41 #define rprintf(a) DPE a
     42#define rprintf(a) printk a
    4243
    4344/* the dprintf functions only print if DEBUG is defined */
    4445#ifdef DEBUG
    4546#define DBG_MAX_BUF_SIZE 0x100000
    46 #define dprintf(a)      DPE a
    47 #define dprintf1(a)     if(DebugLevel > 0) DPE a
    48 #define dprintf2(a)     if(DebugLevel > 1) DPE a
    49 #define dprintf3(a)     if(DebugLevel > 2) DPE a
     47#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
    5051#define DebugInt3()     ; //_asm int 3
    5152//#define DebInt3()     _asm int 3;
Note: See TracChangeset for help on using the changeset viewer.