Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fabian Frederick and committed by
Linus Torvalds
c811f5f4 14694888

+3 -2
+3 -2
fs/squashfs/super.c
··· 27 27 * the filesystem. 28 28 */ 29 29 30 + #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 31 + 30 32 #include <linux/fs.h> 31 33 #include <linux/vfs.h> 32 34 #include <linux/slab.h> ··· 450 448 return err; 451 449 } 452 450 453 - printk(KERN_INFO "squashfs: version 4.0 (2009/01/31) " 454 - "Phillip Lougher\n"); 451 + pr_info("version 4.0 (2009/01/31) Phillip Lougher\n"); 455 452 456 453 return 0; 457 454 }