if (!offset)
offset = (*lcn << clust_byte_shift) % blk_size;
- dprintf("lcn: 0x%X\n", *lcn);
+ dprintf("LCN: 0x%X\n", *lcn);
dprintf("offset: 0x%X\n", offset);
bytes = count; /* bytes to copy */
loffset = offset;
offset += count;
} else {
- dprintf("bytes: %u\n", bytes);
- dprintf("bytes left: %u\n", lbytes);
+ dprintf("bytes: %u\n", bytes);
+ dprintf("bytes left: %u\n", lbytes);
/* otherwise, let's copy it partially... */
k = 0;
while (bytes) {
if (!data)
goto out;
+ lbytes = bytes;
loffset = offset;
offset = 0;
}