From 0cc40bafe84a58e3a2443e81623696128fb99919 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Wed, 20 Mar 2024 04:56:26 +0200 Subject: [PATCH] Add debug statements for read and write operations --- storage/ref_node.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/storage/ref_node.cpp b/storage/ref_node.cpp index c418d35e..79eb1f43 100644 --- a/storage/ref_node.cpp +++ b/storage/ref_node.cpp @@ -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()); }