Ignore:
Timestamp:
Nov 10, 2007, 3:35:56 AM (18 years ago)
Author:
Brendan Oakley
Message:

Make debug buffer larger, and fix alsahlp line endings, from Allan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/drv32/read.cpp

    r32 r268  
    1111int   wrOffset= 0;
    1212char  *szprintBuf= 0;
     13#ifdef DEBUG
     14int   max_buf_size= 0x100000;
     15#else
     16int   max_buf_size= 0x10000;
     17#endif
    1318
    1419void * __ioremap(unsigned long physaddr, unsigned long size, unsigned long flags);
     
    3338      if( rdOffset > wrOffset )
    3439      {
    35         diffCount= 0x10000 - rdOffset + wrOffset;
     40        diffCount= max_buf_size - rdOffset + wrOffset;
    3641      } else
    3742      {
     
    4247     
    4348      rp->Count= transferCount;
    44       if( (rdOffset + transferCount) > 0x10000 )
     49      if( (rdOffset + transferCount) > max_buf_size )
    4550      {
    46         diffCount= 0x10000 - rdOffset;
     51        diffCount= max_buf_size - rdOffset;
    4752        memcpy( lin, szprintBuf + rdOffset, diffCount );
    4853        transferCount= transferCount - diffCount;
Note: See TracChangeset for help on using the changeset viewer.