mtd/fs/jffs2 fs.c,1.70,1.71
Artem Bityutskiy
dedekind at infradead.org
Sun Dec 11 09:07:42 EST 2005
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv8713
Modified Files:
fs.c
Log Message:
[JFFS2] Minor fix: use message wrappers instead of printk()/D1().
Index: fs.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/fs.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- fs.c 24 Nov 2005 16:13:24 -0000 1.70
+++ fs.c 11 Dec 2005 14:07:39 -0000 1.71
@@ -450,11 +450,11 @@
#ifndef CONFIG_JFFS2_FS_WRITEBUFFER
if (c->mtd->type == MTD_NANDFLASH) {
- printk(KERN_ERR "jffs2: Cannot operate on NAND flash unless jffs2 NAND support is compiled in.\n");
+ JFFS2_ERROR("cannot operate on NAND flash unless jffs2 NAND support is compiled in.\n");
return -EINVAL;
}
if (c->mtd->type == MTD_DATAFLASH) {
- printk(KERN_ERR "jffs2: Cannot operate on DataFlash unless jffs2 DataFlash support is compiled in.\n");
+ JFFS2_ERROR("cannot operate on DataFlash unless jffs2 DataFlash support is compiled in.\n");
return -EINVAL;
}
#endif
@@ -468,12 +468,12 @@
*/
if ((c->sector_size * blocks) != c->flash_size) {
c->flash_size = c->sector_size * blocks;
- printk(KERN_INFO "jffs2: Flash size not aligned to erasesize, reducing to %dKiB\n",
+ JFFS2_WARNING("flash size not aligned to erasesize, reducing to %dKiB\n",
c->flash_size / 1024);
}
if (c->flash_size < 5*c->sector_size) {
- printk(KERN_ERR "jffs2: Too few erase blocks (%d)\n", c->flash_size / c->sector_size);
+ JFFS2_ERROR("too few erase blocks (%d)\n", c->flash_size / c->sector_size);
return -EINVAL;
}
@@ -497,14 +497,14 @@
ret = -EINVAL;
- D1(printk(KERN_DEBUG "jffs2_do_fill_super(): Getting root inode\n"));
+ dbg_fsbuild("getting root inode\n");
root_i = iget(sb, 1);
if (is_bad_inode(root_i)) {
- D1(printk(KERN_WARNING "get root inode failed\n"));
+ JFFS2_ERROR("get root inode failed\n");
goto out_root_i;
}
- D1(printk(KERN_DEBUG "jffs2_do_fill_super(): d_alloc_root()\n"));
+ dbg_fsbuild("call d_alloc_root()\n");
sb->s_root = d_alloc_root(root_i);
if (!sb->s_root)
goto out_root_i;
More information about the linux-mtd-cvs
mailing list