(trunk libT) fix a minor error in the log message for prefetch errors. thanks to Chinstrap for spotting this.

This commit is contained in:
Jordan Lee 2011-01-15 05:34:47 +00:00
parent e4bd783ec2
commit 5c96f9ebd8
1 changed files with 2 additions and 1 deletions

View File

@ -156,8 +156,9 @@ readOrWriteBytes( tr_session * session,
} else if( ioMode == TR_IO_PREFETCH ) {
const int rc = tr_prefetch( fd, fileOffset, buflen );
if( rc < 0 ) {
/* (don't set "err" here... it's okay for prefetch to fail) */
tr_tordbg( tor, "prefetch failed for \"%s\": %s",
file->name, tr_strerror( err ) );
file->name, tr_strerror( errno ) );
}
} else if( ioMode == TR_IO_WRITE ) {
const int rc = tr_pwrite( fd, buf, buflen, fileOffset );