]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fs/squashfs/super.c: logging cleanup
authorFabian Frederick <fabf@skynet.be>
Thu, 26 Jun 2014 00:42:21 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:21 +0000 (10:42 +1000)
- 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>
fs/squashfs/super.c

index 031c8d67fd5178bb5afca2b04c71637254b46873..5056babe00df93249465c22b8b6dc6d0ebc1723d 100644 (file)
@@ -27,6 +27,8 @@
  * the filesystem.
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/fs.h>
 #include <linux/vfs.h>
 #include <linux/slab.h>
@@ -448,8 +450,7 @@ static int __init init_squashfs_fs(void)
                return err;
        }
 
-       printk(KERN_INFO "squashfs: version 4.0 (2009/01/31) "
-               "Phillip Lougher\n");
+       pr_info("version 4.0 (2009/01/31) Phillip Lougher\n");
 
        return 0;
 }