slight cleanup, aid in debug prints going to COM port

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1176 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Kenneth J Davis 2006-02-18 15:19:46 +00:00
parent 4956d6369c
commit 87dc4b08d5

View File

@ -46,7 +46,11 @@
/* use to limit output to debug builds */ /* use to limit output to debug builds */
#ifdef DEBUG #ifdef DEBUG
#ifdef DEBUG_PRINT_COMPORT
#define DebugPrintf(x) dbgc_printf x
#else
#define DebugPrintf(x) printf x #define DebugPrintf(x) printf x
#endif
#else #else
#define DebugPrintf(x) #define DebugPrintf(x)
#endif #endif
@ -63,7 +67,7 @@
/* show output related to moving kernel into HMA */ /* show output related to moving kernel into HMA */
#ifdef DEBUG #ifdef DEBUG
#define HMAInitPrintf(x) printf x #define HMAInitPrintf(x) DebugPrintf(x)
#else #else
#define HMAInitPrintf(x) #define HMAInitPrintf(x)
#endif #endif
@ -71,7 +75,7 @@
/* display output during kernel config processing phase */ /* display output during kernel config processing phase */
/* #define DEBUGCFG */ /* #define DEBUGCFG */
#ifdef DEBUGCFG #ifdef DEBUGCFG
#define CfgDbgPrintf(x) printf x #define CfgDbgPrintf(x) DebugPrintf(x)
#else #else
#define CfgDbgPrintf(x) #define CfgDbgPrintf(x)
#endif #endif
@ -79,7 +83,7 @@
/* display info on various DOS functions (dosfns.c) */ /* display info on various DOS functions (dosfns.c) */
/* #define DEBUGDOSFNS */ /* #define DEBUGDOSFNS */
#ifdef DEBUGDOSFNS #ifdef DEBUGDOSFNS
#define DFnsDbgPrintf(x) printf x #define DFnsDbgPrintf(x) DebugPrintf(x)
#else #else
#define DFnsDbgPrintf(x) #define DFnsDbgPrintf(x)
#endif #endif
@ -93,7 +97,7 @@
/* display info on various DOS directory functions (fatdir.c) */ /* display info on various DOS directory functions (fatdir.c) */
/* #define DEBUGFATDIR */ /* #define DEBUGFATDIR */
#ifdef DEBUGFATDIR #ifdef DEBUGFATDIR
#define FDirDbgPrintf(x) printf x #define FDirDbgPrintf(x) DebugPrintf(x)
#else #else
#define FDirDbgPrintf(x) #define FDirDbgPrintf(x)
#endif #endif
@ -107,7 +111,7 @@
/* display info on various FAT handling functions (fatfs.c) */ /* display info on various FAT handling functions (fatfs.c) */
/* #define DEBUGFATFS */ /* #define DEBUGFATFS */
#ifdef DEBUGFATFS #ifdef DEBUGFATFS
#define FatFSDbgPrintf(x) printf x #define FatFSDbgPrintf(x) DebugPrintf(x)
#else #else
#define FatFSDbgPrintf(x) #define FatFSDbgPrintf(x)
#endif #endif
@ -115,7 +119,7 @@
/* debug truename */ /* debug truename */
/* #define DEBUG_TRUENAME */ /* #define DEBUG_TRUENAME */
#ifdef DEBUG_TRUENAME #ifdef DEBUG_TRUENAME
#define tn_printf(x) printf x #define tn_printf(x) DebugPrintf(x)
#else #else
#define tn_printf(x) #define tn_printf(x)
#endif #endif
@ -131,7 +135,10 @@
#endif #endif
#ifdef DEBUG_NEED_PRINTF #ifdef DEBUG_NEED_PRINTF
VOID VA_CDECL printf(const char FAR * fmt, ...); VOID VA_CDECL printf(CONST char FAR * fmt, ...);
#ifdef DEBUG_PRINT_COMPORT
VOID VA_CDECL dbgc_printf(CONST char FAR * fmt, ...);
#endif
#endif #endif
#endif /* __DEBUG_H */ #endif /* __DEBUG_H */