diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-08-06 19:03:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-06 21:01:13 -0400 |
commit | c811f5f41e37d16b2839988426ffde78d2273d48 (patch) | |
tree | 48be74be4d367e9fe26cde60fd21a0be5b68d176 /fs/squashfs/super.c | |
parent | 14694888db2c1f7ba1f2e6172df45813b4db7880 (diff) |
fs/squashfs/super.c: logging cleanup
- Convert printk to pr_foo()
- Add pr_fmt for future logging entries
- Coalesce formats
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Phillip Lougher <phillip@squashfs.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/squashfs/super.c')
-rw-r--r-- | fs/squashfs/super.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/squashfs/super.c b/fs/squashfs/super.c index 031c8d67fd51..5056babe00df 100644 --- a/fs/squashfs/super.c +++ b/fs/squashfs/super.c | |||
@@ -27,6 +27,8 @@ | |||
27 | * the filesystem. | 27 | * the filesystem. |
28 | */ | 28 | */ |
29 | 29 | ||
30 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
31 | |||
30 | #include <linux/fs.h> | 32 | #include <linux/fs.h> |
31 | #include <linux/vfs.h> | 33 | #include <linux/vfs.h> |
32 | #include <linux/slab.h> | 34 | #include <linux/slab.h> |
@@ -448,8 +450,7 @@ static int __init init_squashfs_fs(void) | |||
448 | return err; | 450 | return err; |
449 | } | 451 | } |
450 | 452 | ||
451 | printk(KERN_INFO "squashfs: version 4.0 (2009/01/31) " | 453 | pr_info("version 4.0 (2009/01/31) Phillip Lougher\n"); |
452 | "Phillip Lougher\n"); | ||
453 | 454 | ||
454 | return 0; | 455 | return 0; |
455 | } | 456 | } |