ncpfs: Add pr_fmt and convert printks to pr_<level>
Convert to a more current logging style. Add pr_fmt to prefix with "ncpfs: ". Remove the embedded function names and use "%s: ", __func__ Some previously unprefixed messages now have "ncpfs: " Signed-off-by: Joe Perches <joe@perches.com> Cc: Petr Vandrovec <petr@vandrovec.name> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
d0057ca4c1
commit
b41f8b84d0
@@ -6,6 +6,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <asm/uaccess.h>
|
||||
|
||||
#include <linux/time.h>
|
||||
@@ -34,7 +36,7 @@ int ncp_make_open(struct inode *inode, int right)
|
||||
|
||||
error = -EINVAL;
|
||||
if (!inode) {
|
||||
printk(KERN_ERR "ncp_make_open: got NULL inode\n");
|
||||
pr_err("%s: got NULL inode\n", __func__);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user