Changeset 8350


Ignore:
Timestamp:
May 7, 2009, 1:03:39 PM (12 years ago)
Author:
charles
Message:

(trunk libT) clean up the debugging messages added to smoke out #2030

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r8349 r8350  
    244244{
    245245#if defined(HAVE_POSIX_FADVISE)
    246     const int err = errno;
    247246    /* Set hint about not caching this file.
    248247       It's okay for this to fail silently, so don't let it affect errno */
     248    const int err = errno;
    249249    posix_fadvise( fd, 0, 0, POSIX_FADV_DONTNEED );
    250250    errno = err;
  • trunk/libtransmission/utils.c

    r8348 r8350  
    482482        return NULL;
    483483    }
    484     tr_inf( "at the end of stat(%s), errno is %d", path, errno );
    485484
    486485    if( ( sb.st_mode & S_IFMT ) != S_IFREG )
     
    490489        return NULL;
    491490    }
    492     tr_inf( "looks like %s is a regular file... now we'll try to read it", path );
    493491
    494492    /* Load the torrent file into our buffer */
     
    501499        return NULL;
    502500    }
    503     tr_inf( "after trying to open the file for reading, fd is %d and errno is %d", fd, errno );
    504501    buf = malloc( sb.st_size + 1 );
    505502    if( !buf )
     
    512509    }
    513510    n = read( fd, buf, sb.st_size );
    514     tr_inf( "file size is %"PRId64"; read is %"PRId64", errno is %d", (int64_t)sb.st_size, (int64_t)n, errno );
    515511    if( n == -1 )
    516512    {
     
    523519    }
    524520
    525     tr_inf( "nearing the end, and errno is %d", errno );
    526521    tr_close_file( fd );
    527522    buf[ sb.st_size ] = '\0';
Note: See TracChangeset for help on using the changeset viewer.