projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs testing: Change plotting to check for null data
[yaffs2.git]
/
direct
/
yaffsfs.c
diff --git
a/direct/yaffsfs.c
b/direct/yaffsfs.c
index a9c6b43e4dabb74d1de062d11d9332dc98c33d10..e4f6df07565dfd5e1fe776425f1a92266c081014 100644
(file)
--- a/
direct/yaffsfs.c
+++ b/
direct/yaffsfs.c
@@
-650,13
+650,11
@@
static struct yaffs_obj *yaffsfs_DoFindDirectory(struct yaffs_obj *startDir,
/* got to the end of the string */
return dir;
else{
/* got to the end of the string */
return dir;
else{
- if(strcmp(str,_Y(".")) == 0)
- {
+ if(strcmp(str,_Y(".")) == 0){
/* Do nothing */
/* Do nothing */
- }
- else if(strcmp(str,_Y("..")) == 0)
+ } else if(strcmp(str,_Y("..")) == 0) {
dir = dir->parent;
dir = dir->parent;
- else{
+
}
else{
dir = yaffs_find_by_name(dir,str);
dir = yaffsfs_FollowLink(dir,symDepth,loop);
dir = yaffs_find_by_name(dir,str);
dir = yaffsfs_FollowLink(dir,symDepth,loop);
@@
-2349,7
+2347,7
@@
int yaffs_mount2(const YCHAR *path,int read_only)
return -1;
}
return -1;
}
-
T(YAFFS_TRACE_MOUNT,(TSTR("yaffs: Mounting %s" TENDSTR),path)
);
+
yaffs_trace(YAFFS_TRACE_MOUNT,"yaffs: Mounting %s",path
);
if(yaffsfs_CheckPath(path) < 0){
yaffsfs_SetError(-ENAMETOOLONG);
if(yaffsfs_CheckPath(path) < 0){
yaffsfs_SetError(-ENAMETOOLONG);