]> granicus.if.org Git - transmission/commitdiff
(trunk libT) fix a minor error in the log message for prefetch errors. thanks to...
authorJordan Lee <jordan@transmissionbt.com>
Sat, 15 Jan 2011 05:34:47 +0000 (05:34 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 15 Jan 2011 05:34:47 +0000 (05:34 +0000)
libtransmission/inout.c

index 1eac6e5455dcab35af8965fa2e2bf94f1ac375d0..fb6cda33d21060dfff375fd7975067691446eb67 100644 (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 );