git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleaning up debug (and set modules to build with debug)
[tpg/acess2.git]
/
Kernel
/
vfs
/
open.c
diff --git
a/Kernel/vfs/open.c
b/Kernel/vfs/open.c
index
cc546f4
..
bd43a5f
100644
(file)
--- a/
Kernel/vfs/open.c
+++ b/
Kernel/vfs/open.c
@@
-1,8
+1,8
@@
/*
/*
- * Acess
Micro
VFS
+ * Acess
2
VFS
* - Open, Close and ChDir
*/
* - Open, Close and ChDir
*/
-#define DEBUG
1
+#define DEBUG
0
#include <acess.h>
#include <mm_virt.h>
#include "vfs.h"
#include <acess.h>
#include <mm_virt.h>
#include "vfs.h"
@@
-237,12
+237,6
@@
tVFS_Node *VFS_ParsePath(const char *Path, char **TruePath)
longestMount = mnt;
}
longestMount = mnt;
}
- // Sanity Check
- /*if(!longestMount) {
- Log("VFS_ParsePath - ERROR: No Root Node\n");
- return NULL;
- }*/
-
// Save to shorter variable
mnt = longestMount;
// Save to shorter variable
mnt = longestMount;
@@
-294,11
+288,14
@@
tVFS_Node *VFS_ParsePath(const char *Path, char **TruePath)
LEAVE('n');
return NULL;
}
LEAVE('n');
return NULL;
}
- LOG("FindDir
(%p, '%s')"
, curNode, pathEle);
+ LOG("FindDir
{=%p}(%p, '%s')", curNode->FindDir
, curNode, pathEle);
// Get Child Node
tmpNode = curNode->FindDir(curNode, pathEle);
LOG("tmpNode = %p", tmpNode);
// Get Child Node
tmpNode = curNode->FindDir(curNode, pathEle);
LOG("tmpNode = %p", tmpNode);
- if(curNode->Close) curNode->Close(curNode);
+ if(curNode->Close) {
+ //LOG2("curNode->Close = %p", curNode->Close);
+ curNode->Close(curNode);
+ }
curNode = tmpNode;
// Error Check
curNode = tmpNode;
// Error Check
UCC
git Repository :: git.ucc.asn.au