(trunk libT) fix a minor error in the log message for prefetch errors. thanks to Chinstrap for spotting this.
This commit is contained in:
parent
e4bd783ec2
commit
5c96f9ebd8
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue