projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Fixed some more bugs in direct/timothy_tests/mirror_tests
[yaffs2.git]
/
yaffs_allocator.c
diff --git
a/yaffs_allocator.c
b/yaffs_allocator.c
index 9af15c705bd1c9899a963e88732a4ef3df079b3a..f9cd5becd8f470fc76302ec5498b077fa6c631d9 100644
(file)
--- a/
yaffs_allocator.c
+++ b/
yaffs_allocator.c
@@
-153,8
+153,8
@@
static int yaffs_create_tnodes(struct yaffs_dev *dev, int n_tnodes)
mem = (u8 *) new_tnodes;
if (!new_tnodes) {
mem = (u8 *) new_tnodes;
if (!new_tnodes) {
-
T
(YAFFS_TRACE_ERROR,
-
(TSTR("yaffs: Could not allocate Tnodes" TENDSTR))
);
+
yaffs_trace
(YAFFS_TRACE_ERROR,
+
"yaffs: Could not allocate Tnodes"
);
return YAFFS_FAIL;
}
return YAFFS_FAIL;
}
@@
-179,9
+179,8
@@
static int yaffs_create_tnodes(struct yaffs_dev *dev, int n_tnodes)
tnl = kmalloc(sizeof(struct yaffs_tnode_list), GFP_NOFS);
if (!tnl) {
tnl = kmalloc(sizeof(struct yaffs_tnode_list), GFP_NOFS);
if (!tnl) {
- T(YAFFS_TRACE_ERROR,
- (TSTR
- ("yaffs: Could not add tnodes to management list" TENDSTR)));
+ yaffs_trace(YAFFS_TRACE_ERROR,
+ "Could not add tnodes to management list");
return YAFFS_FAIL;
} else {
tnl->tnodes = new_tnodes;
return YAFFS_FAIL;
} else {
tnl->tnodes = new_tnodes;
@@
-189,7
+188,7
@@
static int yaffs_create_tnodes(struct yaffs_dev *dev, int n_tnodes)
allocator->alloc_tnode_list = tnl;
}
allocator->alloc_tnode_list = tnl;
}
-
T(YAFFS_TRACE_ALLOCATE, (TSTR("yaffs: Tnodes added" TENDSTR))
);
+
yaffs_trace(YAFFS_TRACE_ALLOCATE,"Tnodes added"
);
return YAFFS_OK;
}
return YAFFS_OK;
}
@@
-301,8
+300,8
@@
static int yaffs_create_free_objs(struct yaffs_dev *dev, int n_obj)
kfree(list);
list = NULL;
}
kfree(list);
list = NULL;
}
-
T
(YAFFS_TRACE_ALLOCATE,
-
(TSTR("yaffs: Could not allocate more objects" TENDSTR))
);
+
yaffs_trace
(YAFFS_TRACE_ALLOCATE,
+
"Could not allocate more objects"
);
return YAFFS_FAIL;
}
return YAFFS_FAIL;
}