summaryrefslogtreecommitdiffstats
path: root/fs/jffs2/background.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-02-15 18:56:45 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-03-26 19:40:19 -0400
commit5a528957e7c74f1fed73fe20424b7a3421658877 (patch)
tree4b5e353fe0ceb0e275f278461a62a8d3094fe692 /fs/jffs2/background.c
parentda320f055a8818269c008e30b887cdcf09d8e4bd (diff)
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>
Diffstat (limited to 'fs/jffs2/background.c')
-rw-r--r--fs/jffs2/background.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/jffs2/background.c b/fs/jffs2/background.c
index 63dafc6196e5..2b60ce1996aa 100644
--- a/fs/jffs2/background.c
+++ b/fs/jffs2/background.c
@@ -10,6 +10,8 @@
10 * 10 *
11 */ 11 */
12 12
13#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
14
13#include <linux/kernel.h> 15#include <linux/kernel.h>
14#include <linux/jffs2.h> 16#include <linux/jffs2.h>
15#include <linux/mtd/mtd.h> 17#include <linux/mtd/mtd.h>
@@ -48,8 +50,7 @@ int jffs2_start_garbage_collect_thread(struct jffs2_sb_info *c)
48 ret = PTR_ERR(tsk); 50 ret = PTR_ERR(tsk);
49 } else { 51 } else {
50 /* Wait for it... */ 52 /* Wait for it... */
51 jffs2_dbg(1, "JFFS2: Garbage collect thread is pid %d\n", 53 jffs2_dbg(1, "Garbage collect thread is pid %d\n", tsk->pid);
52 tsk->pid);
53 wait_for_completion(&c->gc_thread_start); 54 wait_for_completion(&c->gc_thread_start);
54 ret = tsk->pid; 55 ret = tsk->pid;
55 } 56 }
@@ -62,7 +63,7 @@ void jffs2_stop_garbage_collect_thread(struct jffs2_sb_info *c)
62 int wait = 0; 63 int wait = 0;
63 spin_lock(&c->erase_completion_lock); 64 spin_lock(&c->erase_completion_lock);
64 if (c->gc_task) { 65 if (c->gc_task) {
65 jffs2_dbg(1, "jffs2: Killing GC task %d\n", c->gc_task->pid); 66 jffs2_dbg(1, "Killing GC task %d\n", c->gc_task->pid);
66 send_sig(SIGKILL, c->gc_task, 1); 67 send_sig(SIGKILL, c->gc_task, 1);
67 wait = 1; 68 wait = 1;
68 } 69 }