jffs2: Use pr_fmt and remove jffs: from formats
Use pr_fmt to prefix KBUILD_MODNAME to appropriate logging messages. Remove now unnecessary internal prefixes from formats. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Этот коммит содержится в:

коммит произвёл
David Woodhouse

родитель
da320f055a
Коммит
5a528957e7
@@ -10,6 +10,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#include <linux/slab.h>
|
||||
@@ -88,7 +90,7 @@ again:
|
||||
goto again;
|
||||
} else {
|
||||
/* Eep. All were empty */
|
||||
jffs2_dbg(1, "jffs2: No clean, dirty _or_ erasable blocks to GC from! Where are they all?\n");
|
||||
jffs2_dbg(1, "No clean, dirty _or_ erasable blocks to GC from! Where are they all?\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -249,7 +251,7 @@ int jffs2_garbage_collect_pass(struct jffs2_sb_info *c)
|
||||
mutex_unlock(&c->alloc_sem);
|
||||
return -EAGAIN;
|
||||
}
|
||||
jffs2_dbg(1, "jffs2: Couldn't find erase block to garbage collect!\n");
|
||||
jffs2_dbg(1, "Couldn't find erase block to garbage collect!\n");
|
||||
spin_unlock(&c->erase_completion_lock);
|
||||
mutex_unlock(&c->alloc_sem);
|
||||
return -EIO;
|
||||
|
Ссылка в новой задаче
Block a user