diff options
author | Joe Perches <joe@perches.com> | 2014-04-08 19:04:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-08 19:48:52 -0400 |
commit | b41f8b84d01d32ea618dbbe5679bd07ce3444b88 (patch) | |
tree | cbede13191e15a0554b8d12ae6ef098a8ce4048b /fs/ncpfs/inode.c | |
parent | d0057ca4c1fe73c05a9e077cc7691217370b3283 (diff) |
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>
Diffstat (limited to 'fs/ncpfs/inode.c')
-rw-r--r-- | fs/ncpfs/inode.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c index 647d86d2db39..3277fc132959 100644 --- a/fs/ncpfs/inode.c +++ b/fs/ncpfs/inode.c | |||
@@ -9,6 +9,8 @@ | |||
9 | * | 9 | * |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
13 | |||
12 | #include <linux/module.h> | 14 | #include <linux/module.h> |
13 | 15 | ||
14 | #include <asm/uaccess.h> | 16 | #include <asm/uaccess.h> |
@@ -258,7 +260,7 @@ ncp_iget(struct super_block *sb, struct ncp_entry_info *info) | |||
258 | struct inode *inode; | 260 | struct inode *inode; |
259 | 261 | ||
260 | if (info == NULL) { | 262 | if (info == NULL) { |
261 | printk(KERN_ERR "ncp_iget: info is NULL\n"); | 263 | pr_err("%s: info is NULL\n", __func__); |
262 | return NULL; | 264 | return NULL; |
263 | } | 265 | } |
264 | 266 | ||
@@ -290,7 +292,7 @@ ncp_iget(struct super_block *sb, struct ncp_entry_info *info) | |||
290 | } | 292 | } |
291 | insert_inode_hash(inode); | 293 | insert_inode_hash(inode); |
292 | } else | 294 | } else |
293 | printk(KERN_ERR "ncp_iget: iget failed!\n"); | 295 | pr_err("%s: iget failed!\n", __func__); |
294 | return inode; | 296 | return inode; |
295 | } | 297 | } |
296 | 298 | ||
@@ -306,7 +308,7 @@ ncp_evict_inode(struct inode *inode) | |||
306 | 308 | ||
307 | if (ncp_make_closed(inode) != 0) { | 309 | if (ncp_make_closed(inode) != 0) { |
308 | /* We can't do anything but complain. */ | 310 | /* We can't do anything but complain. */ |
309 | printk(KERN_ERR "ncp_evict_inode: could not close\n"); | 311 | pr_err("%s: could not close\n", __func__); |
310 | } | 312 | } |
311 | } | 313 | } |
312 | 314 | ||
@@ -621,7 +623,7 @@ static int ncp_fill_super(struct super_block *sb, void *raw_data, int silent) | |||
621 | now because of PATH_MAX changes.. */ | 623 | now because of PATH_MAX changes.. */ |
622 | if (server->m.time_out < 1) { | 624 | if (server->m.time_out < 1) { |
623 | server->m.time_out = 10; | 625 | server->m.time_out = 10; |
624 | printk(KERN_INFO "You need to recompile your ncpfs utils..\n"); | 626 | pr_info("You need to recompile your ncpfs utils..\n"); |
625 | } | 627 | } |
626 | server->m.time_out = server->m.time_out * HZ / 100; | 628 | server->m.time_out = server->m.time_out * HZ / 100; |
627 | server->m.file_mode = (server->m.file_mode & S_IRWXUGO) | S_IFREG; | 629 | server->m.file_mode = (server->m.file_mode & S_IRWXUGO) | S_IFREG; |