Changeset 501 for GPL/trunk/drv32


Ignore:
Timestamp:
Jul 11, 2010, 7:01:51 AM (15 years ago)
Author:
David Azarewicz
Message:

debug statement changes

Location:
GPL/trunk/drv32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/drv32/parse.c

    r484 r501  
    3939#include <string.h>
    4040
    41 #ifdef DEBUG
    4241#define COMM_DEBUG
    43 #endif
    4442
    4543// True if the /V parameter was specified
  • GPL/trunk/drv32/read.cpp

    r268 r501  
    1111int   wrOffset= 0;
    1212char  *szprintBuf= 0;
    13 #ifdef DEBUG
    14 int   max_buf_size= 0x100000;
    15 #else
    16 int   max_buf_size= 0x10000;
    17 #endif
    1813
    1914void * __ioremap(unsigned long physaddr, unsigned long size, unsigned long flags);
     
    2520{
    2621  RPRWV __far* rp = (RPRWV __far*)_rp;
    27  
     22
    2823  char *lin;
    2924  int   transferCount= rp->Count;
    30  
     25
    3126  if( szprintBuf )
    3227  {
     
    3530    {
    3631      int diffCount;
    37      
     32
    3833      if( rdOffset > wrOffset )
    3934      {
    40         diffCount= max_buf_size - rdOffset + wrOffset;
     35        diffCount= DBG_MAX_BUF_SIZE - rdOffset + wrOffset;
    4136      } else
    4237      {
     
    4540      if( transferCount > diffCount )
    4641        transferCount= diffCount;
    47      
     42
    4843      rp->Count= transferCount;
    49       if( (rdOffset + transferCount) > max_buf_size )
     44      if( (rdOffset + transferCount) > DBG_MAX_BUF_SIZE )
    5045      {
    51         diffCount= max_buf_size - rdOffset;
     46        diffCount= DBG_MAX_BUF_SIZE - rdOffset;
    5247        memcpy( lin, szprintBuf + rdOffset, diffCount );
    5348        transferCount= transferCount - diffCount;
     
    5550      } else
    5651        diffCount= 0;
    57        
    58       if( transferCount ) 
     52
     53      if( transferCount )
    5954      {
    6055        memcpy( lin + diffCount, szprintBuf + rdOffset, transferCount );
  • GPL/trunk/drv32/strategy.c

    r458 r501  
    3838ULONG StratClose(RP __far *_rp);
    3939
    40 ULONG DiscardableInit(RPInit __far*); 
     40ULONG DiscardableInit(RPInit __far*);
    4141
    4242ULONG deviceOwner = DEV_NO_OWNER;
     
    7070    RPInit __far* rp = (RPInit __far*)_rp;
    7171    rc = DiscardableInit(rp);
    72 #ifdef DEBUG
    73     dprintf(("StratInit. cp1.rc %d", rc));
    74 #endif
     72    dprintf(("StratInit End rc=%d", rc));
    7573    return rc;
    7674}
     
    8987    BYTE   LowIRQ;
    9088    BYTE   HighIRQ;
    91     BYTE   Pin;   
     89    BYTE   Pin;
    9290};
    9391extern struct SaveIRQForSlot sISRHigh[];
     
    138136#endif
    139137  if(rp->Function == 1) {//end of shutdown
    140         OSS32_Shutdown(); 
     138        OSS32_Shutdown();
    141139  }
    142140  return(RPDONE);
Note: See TracChangeset for help on using the changeset viewer.