mtd/fs/jffs3 wbuf.c,3.3,3.4 gc.c,3.4,3.5

Artem Bityuckiy dedekind at infradead.org
Fri Dec 17 10:02:55 EST 2004


Update of /home/cvs/mtd/fs/jffs3
In directory phoenix.infradead.org:/tmp/cvs-serv15477

Modified Files:
	wbuf.c gc.c 
Log Message:
Fix: add dbg level


Index: wbuf.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs3/wbuf.c,v
retrieving revision 3.3
retrieving revision 3.4
diff -u -r3.3 -r3.4
--- wbuf.c	17 Dec 2004 12:17:58 -0000	3.3
+++ wbuf.c	17 Dec 2004 15:02:52 -0000	3.4
@@ -968,7 +968,7 @@
 	for (cnt = 0; cnt < (c->sector_size / c->mtd->erasesize); cnt++) {
 		/* Check first if the block is bad. */
 		if (c->mtd->block_isbad (c->mtd, offset)) {
-			DBG_WBUF("Bad block at %08x\n", jeb->offset);
+			DBG_WBUF(1, "Bad block at %08x\n", jeb->offset);
 			return 2;
 		}
 		/*
@@ -979,11 +979,11 @@
 		ret = c->mtd->read_oob (c->mtd, offset, oob_size << 1, &retlen, buf);
 
 		if (ret) {
-			DBG_WBUF("Read OOB failed %d for block at %08x\n", ret, jeb->offset);
+			DBG_WBUF(1, "Read OOB failed %d for block at %08x\n", ret, jeb->offset);
 			return ret;
 		}
 		if (retlen < (oob_size << 1)) {
-			DBG_WBUF("Read OOB return short read (%zd bytes not %d) for block at %08x\n",
+			DBG_WBUF(1, "Read OOB return short read (%zd bytes not %d) for block at %08x\n",
 				retlen, oob_size << 1, jeb->offset);
 			return -EIO;
 		}

Index: gc.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs3/gc.c,v
retrieving revision 3.4
retrieving revision 3.5
diff -u -r3.4 -r3.5
--- gc.c	17 Dec 2004 12:15:55 -0000	3.4
+++ gc.c	17 Dec 2004 15:02:52 -0000	3.5
@@ -860,7 +860,7 @@
 			   a new deletion dirent to replace it */
 			up(&c->erase_free_sem);
 
-			DBG_GC("Deletion dirent at %#08x still obsoletes real dirent \"%s\" at %#08x for ino #%u\n",
+			DBG_GC(1, "Deletion dirent at %#08x still obsoletes real dirent \"%s\" at %#08x for ino #%u\n",
 				  ref_offset(fd->raw), fd->name, ref_offset(raw), je32_to_cpu(rd->ino));
 			kfree(rd);
 





More information about the linux-mtd-cvs mailing list