diff --git a/sys/fs/fat/fat.c b/sys/fs/fat/fat.c index c3505bd..86b06d0 100644 --- a/sys/fs/fat/fat.c +++ b/sys/fs/fat/fat.c @@ -90,7 +90,7 @@ int read_fat(fileDescriptor_t *fd, char *data, off_t offset, long size) { FL_FILE *_file = (FL_FILE*) fd->res; - kprintf("Offset: %i", offset); + kprintf("Offset(%s): %i:%i", _file->filename, offset, size); if (fl_fseek(_file, offset, 0) != 0) kprintf("SEEK FAILED!"); diff --git a/sys/fs/vfs/file.c b/sys/fs/vfs/file.c index f816721..e63fa63 100644 --- a/sys/fs/vfs/file.c +++ b/sys/fs/vfs/file.c @@ -178,9 +178,6 @@ break; } - if (fd->res) - fl_fseek(fd->res, fd->offset); - kprintf("loff: %ld", fd->offset); return (error);