changeset 261:c0b43b72fd56

Replace printf with proper tracing
author charles
date Sun, 18 Jan 2009 23:24:08 +0000
parents 76af4181188c
children 3a568ad48cc1
files yaffs_guts.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/yaffs_guts.c
+++ b/yaffs_guts.c
@@ -6298,7 +6298,10 @@ static int yaffs_ScanBackwards(yaffs_Dev
 				dev->nFreeChunks++;
 				
 			} else if (tags.eccResult == YAFFS_ECC_RESULT_UNFIXED){
-				printf("Error in ECC\n");
+				T(YAFFS_TRACE_SCAN,
+				  (TSTR(" Unfixed ECC in chunk(%d:%d), chunk ignored"TENDSTR),
+				  blk, c));
+
 				/* Don't actually delete because the chunk is not yet set up as being in use */
 				/* yaffs_DeleteChunk(dev, chunk, 1, __LINE__); */
 			}else if (tags.chunkId > 0) {