diff options
author | Joe Perches <joe@perches.com> | 2012-02-15 18:56:44 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-03-26 19:39:40 -0400 |
commit | da320f055a8818269c008e30b887cdcf09d8e4bd (patch) | |
tree | deaead9c0bd0ed473e633fca2d66460b3b0ec99d /fs/jffs2/background.c | |
parent | 9c261b33a9c417ccaf07f41796be278d09d02d49 (diff) |
jffs2: Convert printks to pr_<level>
Use the more current logging style.
Coalesce formats, align arguments.
Convert uses of embedded function names to %s, __func__.
A couple of long line checkpatch errors I don't care about exist.
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>
Diffstat (limited to 'fs/jffs2/background.c')
-rw-r--r-- | fs/jffs2/background.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/jffs2/background.c b/fs/jffs2/background.c index 26ce06cd4d0f..63dafc6196e5 100644 --- a/fs/jffs2/background.c +++ b/fs/jffs2/background.c | |||
@@ -42,7 +42,8 @@ int jffs2_start_garbage_collect_thread(struct jffs2_sb_info *c) | |||
42 | 42 | ||
43 | tsk = kthread_run(jffs2_garbage_collect_thread, c, "jffs2_gcd_mtd%d", c->mtd->index); | 43 | tsk = kthread_run(jffs2_garbage_collect_thread, c, "jffs2_gcd_mtd%d", c->mtd->index); |
44 | if (IS_ERR(tsk)) { | 44 | if (IS_ERR(tsk)) { |
45 | printk(KERN_WARNING "fork failed for JFFS2 garbage collect thread: %ld\n", -PTR_ERR(tsk)); | 45 | pr_warn("fork failed for JFFS2 garbage collect thread: %ld\n", |
46 | -PTR_ERR(tsk)); | ||
46 | complete(&c->gc_thread_exit); | 47 | complete(&c->gc_thread_exit); |
47 | ret = PTR_ERR(tsk); | 48 | ret = PTR_ERR(tsk); |
48 | } else { | 49 | } else { |
@@ -152,7 +153,7 @@ static int jffs2_garbage_collect_thread(void *_c) | |||
152 | 153 | ||
153 | jffs2_dbg(1, "%s(): pass\n", __func__); | 154 | jffs2_dbg(1, "%s(): pass\n", __func__); |
154 | if (jffs2_garbage_collect_pass(c) == -ENOSPC) { | 155 | if (jffs2_garbage_collect_pass(c) == -ENOSPC) { |
155 | printk(KERN_NOTICE "No space for garbage collection. Aborting GC thread\n"); | 156 | pr_notice("No space for garbage collection. Aborting GC thread\n"); |
156 | goto die; | 157 | goto die; |
157 | } | 158 | } |
158 | } | 159 | } |