Changeset 164


Ignore:
Timestamp:
10/13/2009 03:11:31 PM (14 years ago)
Author:
marcus
Message:

r98 | svn | 2009-10-08 22:44:31 +0200 (Do, 08 Okt 2009) | 1 line

better debug output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SH_SHM/trunk/source/gcf/gcflib.c

    r163 r164  
    11281128                        *calib = fd->calib; 
    11291129                        *dt = (hdr.smprate == 0) ? 0.0 : 1.0/(float)hdr.smprate; 
    1130                         getlth = Nint32( seclth / *dt ); 
     1130                        getlth = (hdr.smprate == 0) ? 0 : Nint32( seclth / *dt ); 
    11311131                        if  (getlth <= 0)  {*status = GcfERR_ZEROLTH; return;} 
    11321132                        *ldat = (INT32 *)sy_allocmem( getlth, (int)sizeof(INT32), status ); 
     
    11871187                                GcfFreeMem( blk ); 
    11881188                                *status = GcfERR_BUG; 
    1189                                 fprintf( stderr, "*** GcfReadStream: bug (1) [sample: %d] ***\n", 
    1190                                         fd->sample ); 
     1189                                fprintf( stderr, 
     1190                                        "*** GcfReadStream: bug (1) [sample: %d, actblksmp %d] ***\n", 
     1191                                        fd->sample, actblksmp ); 
    11911192                                return; 
    11921193                        } /*endif*/ 
Note: See TracChangeset for help on using the changeset viewer.