projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
03f993b
)
Add some more tracing
author
charles
<charles>
Sat, 11 Nov 2006 23:27:44 +0000
(23:27 +0000)
committer
charles
<charles>
Sat, 11 Nov 2006 23:27:44 +0000
(23:27 +0000)
yaffs_guts.c
patch
|
blob
|
history
diff --git
a/yaffs_guts.c
b/yaffs_guts.c
index f87a94a7ba76718b095b69633ea98fb2babc55ab..b90313e5fe408fea035902c9aebcf3a4a60b2041 100644
(file)
--- a/
yaffs_guts.c
+++ b/
yaffs_guts.c
@@
-13,7
+13,7
@@
*/
const char *yaffs_guts_c_version =
*/
const char *yaffs_guts_c_version =
- "$Id: yaffs_guts.c,v 1.4
3 2006-11-08 09:52:12
charles Exp $";
+ "$Id: yaffs_guts.c,v 1.4
4 2006-11-11 23:27:44
charles Exp $";
#include "yportenv.h"
#include "yportenv.h"
@@
-2156,6
+2156,11
@@
static void yaffs_BlockBecameDirty(yaffs_Device * dev, int blockNo)
/* If the block is still healthy erase it and mark as clean.
* If the block has had a data failure, then retire it.
*/
/* If the block is still healthy erase it and mark as clean.
* If the block has had a data failure, then retire it.
*/
+
+ T(YAFFS_TRACE_GC | YAFFS_TRACE_ERASE,
+ (TSTR("yaffs_BlockBecameDirty block %d state %d %s"TENDSTR),
+ blockNo, bi->blockState, (bi->needsRetiring) ? "needs retiring" : ""));
+
bi->blockState = YAFFS_BLOCK_STATE_DIRTY;
if (!bi->needsRetiring) {
bi->blockState = YAFFS_BLOCK_STATE_DIRTY;
if (!bi->needsRetiring) {