From c0d545a4291efbb95831518929a87f07aa3c1eb9 Mon Sep 17 00:00:00 2001 From: charles Date: Sat, 11 Nov 2006 23:27:44 +0000 Subject: [PATCH] Add some more tracing --- yaffs_guts.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/yaffs_guts.c b/yaffs_guts.c index f87a94a..b90313e 100644 --- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -13,7 +13,7 @@ */ const char *yaffs_guts_c_version = - "$Id: yaffs_guts.c,v 1.43 2006-11-08 09:52:12 charles Exp $"; + "$Id: yaffs_guts.c,v 1.44 2006-11-11 23:27:44 charles Exp $"; #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. */ + + 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) { -- 2.30.2