]> git.donarmstrong.com Git - samtools.git/commitdiff
Removed the offending knet_seek message.
authorPetr Danecek <pd3@sanger.ac.uk>
Thu, 8 Oct 2009 10:39:54 +0000 (10:39 +0000)
committerPetr Danecek <pd3@sanger.ac.uk>
Thu, 8 Oct 2009 10:39:54 +0000 (10:39 +0000)
knetfile.c

index da992ede02016e153fca2b824813eb34c3b9880c..994babb6a384e2757098bd6b042970a4dd54a801 100644 (file)
@@ -536,7 +536,8 @@ off_t knet_seek(knetFile *fp, int64_t off, int whence)
                 * while fseek() returns zero on success. */
                off_t offset = lseek(fp->fd, off, whence);
                if (offset == -1) {
-            fprintf(stderr,"[knet_seek] %s\n", strerror(errno));
+            // Be silent, it is OK for knet_seek to fail when the file is streamed
+            // fprintf(stderr,"[knet_seek] %s\n", strerror(errno));
                        return -1;
                }
                fp->offset = offset;