Skip to content

Commit

Permalink
chore(Vfs): add trace logging for Vfs parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Jun 7, 2024
1 parent da7f3c4 commit adc425b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Vfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,15 @@ namespace zenkit {
bool dir = (e_type & 0x80000000) != 0;
bool last = (e_type & 0x40000000) != 0;

ZKLOGT("Vfs",
"Parsing node name='%s' offset=%x size=%x dir=%d last=%d existing='%s'",
e_name.c_str(),
e_offset,
e_size,
dir,
last,
existing == nullptr ? "(NIL)" : existing->name().c_str());

if (dir) {
if (existing == nullptr) {
existing = parent->create(VfsNode::directory(e_name, timestamp));
Expand Down

0 comments on commit adc425b

Please sign in to comment.