Add debug statements for read and write operations

This commit is contained in:
EnderIce2 2024-03-20 04:56:26 +02:00
parent f7fde1a933
commit 0cc40bafe8
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -31,6 +31,8 @@ namespace vfs
if (this->SymlinkTo)
return this->SymlinkTo->read(Buffer, Size);
debug("Reading %d bytes from %s[%d]",
Size, this->node->FullPath, this->FileOffset.load());
return this->node->read(Buffer, Size, this->FileOffset.load());
}
@ -39,6 +41,8 @@ namespace vfs
if (this->SymlinkTo)
return this->SymlinkTo->write(Buffer, Size);
debug("Writing %d bytes to %s[%d]",
Size, this->node->FullPath, this->FileOffset.load());
return this->node->write(Buffer, Size, this->FileOffset.load());
}