changeset 202:8bfa3820f9cb

Add newlines to a couple of trace/diagnostic messages. Reported by andre at bluewatersys.com.
author imcd
date Mon, 29 Oct 2007 14:59:57 +0000
parents b2ebc926d478
children 88a05fb266f0
files yaffs_mtdif1.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/yaffs_mtdif1.c
+++ b/yaffs_mtdif1.c
@@ -288,7 +288,7 @@ int nandmtd1_MarkNANDBlockBad(struct yaf
 	int blocksize = dev->nChunksPerBlock * dev->nDataBytesPerChunk;
 	int retval;
 
-	yaffs_trace(YAFFS_TRACE_BAD_BLOCKS, "marking block %d bad", blockNo);
+	yaffs_trace(YAFFS_TRACE_BAD_BLOCKS, "marking block %d bad\n", blockNo);
 
 	retval = mtd->block_markbad(mtd, (loff_t)blocksize * blockNo);
 	return (retval) ? YAFFS_FAIL : YAFFS_OK;
@@ -344,7 +344,7 @@ int nandmtd1_QueryNANDBlock(struct yaffs
 	etags.blockBad = (mtd->block_isbad)(mtd, addr);
 	if (etags.blockBad) {
 		yaffs_trace(YAFFS_TRACE_BAD_BLOCKS,
-			"block %d is marked bad", blockNo);
+			"block %d is marked bad\n", blockNo);
 		state = YAFFS_BLOCK_STATE_DEAD;
 	}
 	else if (etags.eccResult != YAFFS_ECC_RESULT_NO_ERROR) {