3131#include "init-mod.h"
3232#include "dyndata.h"
3333
34- #ifdef VERSION_STRINGS
35- static BYTE * RcsId =
36- "$Id: config.c 1705 2012-02-07 08:10:33Z perditionc $" ;
37- #endif
3834
3935#ifdef DEBUG
4036#define DebugPrintf (x ) printf x
@@ -342,15 +338,9 @@ void PreConfig(void)
342338{
343339 /* Initialize the base memory pointers */
344340
345- #ifdef DEBUG
346- {
347- printf ("SDA located at 0x%p\n" , internal_data );
348- }
349- #endif
341+ DebugPrintf (("SDA located at 0x%p\n" , internal_data ));
350342 /* Begin by initializing our system buffers */
351- #ifdef DEBUG
352- /* printf("Preliminary %d buffers allocated at 0x%p\n", Config.cfgBuffers, buffers);*/
353- #endif
343+ /* DebugPrintf(("Preliminary %d buffers allocated at 0x%p\n", Config.cfgBuffers, buffers));*/
354344
355345 LoL -> sfthead = MK_FP (FP_SEG (LoL ), 0xcc ); /* &(LoL->firstsftt) */
356346 /* LoL->FCBp = (sfttbl FAR *)&FcbSft; */
@@ -362,18 +352,14 @@ void PreConfig(void)
362352
363353 LoL -> CDSp = KernelAlloc (sizeof (struct cds ) * LoL -> lastdrive , 'L' , 0 );
364354
365- #ifdef DEBUG
366- /* printf(" FCB table 0x%p\n",LoL->FCBp);*/
367- printf (" sft table 0x%p\n" , LoL -> sfthead );
368- printf (" CDS table 0x%p\n" , LoL -> CDSp );
369- printf (" DPB table 0x%p\n" , LoL -> DPBp );
370- #endif
355+ /* DebugPrintf((" FCB table 0x%p\n",LoL->FCBp));*/
356+ DebugPrintf ((" sft table 0x%p\n" , LoL -> sfthead ));
357+ DebugPrintf ((" CDS table 0x%p\n" , LoL -> CDSp ));
358+ DebugPrintf ((" DPB table 0x%p\n" , LoL -> DPBp ));
371359
372360 /* Done. Now initialize the MCB structure */
373361 /* This next line is 8086 and 80x86 real mode specific */
374- #ifdef DEBUG
375- printf ("Preliminary allocation completed: top at %p\n" , lpTop );
376- #endif
362+ DebugPrintf (("Preliminary allocation completed: top at %p\n" , lpTop ));
377363}
378364
379365/* Do second pass initialization: near allocation and MCBs */
@@ -443,9 +429,7 @@ void PostConfig(void)
443429
444430 /* Begin by initializing our system buffers */
445431 /* dma_scratch = (BYTE FAR *) KernelAllocDma(BUFFERSIZE); */
446- #ifdef DEBUG
447- /* printf("DMA scratchpad allocated at 0x%p\n", dma_scratch); */
448- #endif
432+ /* DebugPrintf(("DMA scratchpad allocated at 0x%p\n", dma_scratch)); */
449433
450434 config_init_buffers (Config .cfgBuffers );
451435
@@ -462,12 +446,11 @@ void PostConfig(void)
462446
463447 LoL -> CDSp = KernelAlloc (sizeof (struct cds ) * LoL -> lastdrive , 'L' , Config .cfgLastdriveHigh );
464448
465- #ifdef DEBUG
466- /* printf(" FCB table 0x%p\n",LoL->FCBp);*/
467- printf (" sft table 0x%p\n" , LoL -> sfthead -> sftt_next );
468- printf (" CDS table 0x%p\n" , LoL -> CDSp );
469- printf (" DPB table 0x%p\n" , LoL -> DPBp );
470- #endif
449+ /* DebugPrintf((" FCB table 0x%p\n",LoL->FCBp));*/
450+ DebugPrintf ((" sft table 0x%p\n" , LoL -> sfthead -> sftt_next ));
451+ DebugPrintf ((" CDS table 0x%p\n" , LoL -> CDSp ));
452+ DebugPrintf ((" DPB table 0x%p\n" , LoL -> DPBp ));
453+
471454 if (Config .cfgStacks )
472455 {
473456 VOID FAR * stackBase =
@@ -1845,9 +1828,7 @@ STATIC BOOL LoadDevice(BYTE * pLine, char FAR *top, COUNT mode)
18451828 /* The device driver is paragraph aligned. */
18461829 eb .load .reloc = eb .load .load_seg = base ;
18471830
1848- #ifdef DEBUG
1849- printf ("Loading device driver %s at segment %04x\n" , szBuf , base );
1850- #endif
1831+ DebugPrintf (("Loading device driver %s at segment %04x\n" , szBuf , base ));
18511832
18521833 if ((result = init_DosExec (3 , & eb , szBuf )) != SUCCESS )
18531834 {
0 commit comments