From: John Hodge Date: Sun, 27 Sep 2009 08:47:39 +0000 (+0800) Subject: Debug X-Git-Tag: rel0.06~446 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=ae66b3678eec6777c8f5d170ed330c7d6e85e1f0;p=tpg%2Facess2.git Debug --- diff --git a/Kernel/vfs/fs/fat.c b/Kernel/vfs/fs/fat.c index 533e9ccf..c7f2d4de 100644 --- a/Kernel/vfs/fs/fat.c +++ b/Kernel/vfs/fs/fat.c @@ -349,9 +349,9 @@ Uint64 FAT_Read(tVFS_Node *node, Uint64 offset, Uint64 length, void *buffer) } // Clamp Size if(offset + length > node->Size) { - Log("FAT_Read: Reading past EOF (%i+%i+ > %i), clamped to %i", - offset, length, node->Size, offset - node->Size); - length = offset - node->Size; + Log("FAT_Read: Reading past EOF (%lli + %lli > %lli), clamped to %lli", + offset, length, node->Size, node->Size - offset); + length = node->Size - offset; } // Single Cluster including offset