Skip to content

Commit

Permalink
fs/squashfs/super.c: logging cleanup
Browse files Browse the repository at this point in the history
- Convert printk to pr_foo()
- Add pr_fmt for future logging entries
- Coalesce formats

Signed-off-by: Fabian Frederick <[email protected]>
Cc: Phillip Lougher <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Fabian Frederick authored and torvalds committed Aug 7, 2014
1 parent 1469488 commit c811f5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/squashfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit c811f5f

Please sign in to comment.