X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fvfs%2Ffs%2Froot.c;fp=KernelLand%2FKernel%2Fvfs%2Ffs%2Froot.c;h=bee2030544639a14333f6b28de85fe3619d27b60;hb=7dcbae6762b50bdd450559ca455f2374a09f1df9;hp=9fa1732b9391f054dc84ba20b57fb055590cdb59;hpb=d497ef38c1c1e0aa5467722e115be0dc4baa47ab;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/vfs/fs/root.c b/KernelLand/Kernel/vfs/fs/root.c index 9fa1732b..bee20305 100644 --- a/KernelLand/Kernel/vfs/fs/root.c +++ b/KernelLand/Kernel/vfs/fs/root.c @@ -142,14 +142,20 @@ tVFS_Node *Root_FindDir(tVFS_Node *Node, const char *Name) tRamFS_File *parent = Node->ImplPtr; tRamFS_File *child = parent->Data.FirstChild; + ENTER("pNode sName", Node, Name); //Log("Root_FindDir: (Node=%p, Name='%s')", Node, Name); for(;child;child = child->Next) { //Log(" Root_FindDir: strcmp('%s', '%s')", child->Node.Name, Name); - if(strcmp(child->Name, Name) == 0) return &child->Node; + LOG("child->Name = '%s'", child->Name); + if(strcmp(child->Name, Name) == 0) { + LEAVE('p', &child->Node); + return &child->Node; + } } + LEAVE('n'); return NULL; }