diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-06 17:36:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-06 19:08:09 -0400 |
commit | f38cfb2564f5fead53eebd9617258ee0376b1906 (patch) | |
tree | 6905553c7bae9f09a348dcf8d44a84847c50d464 /fs/coda | |
parent | d9b4b3195a06e646c357f6108a424569b1a920d9 (diff) |
fs/coda: logging prefix uniformization
- Add pr_fmt based on module name.
- Remove Coda: coda: from pr_foo()
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Jan Harkes <jaharkes@cs.cmu.edu>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/coda')
-rw-r--r-- | fs/coda/coda_linux.h | 6 | ||||
-rw-r--r-- | fs/coda/dir.c | 2 | ||||
-rw-r--r-- | fs/coda/inode.c | 2 | ||||
-rw-r--r-- | fs/coda/psdev.c | 6 | ||||
-rw-r--r-- | fs/coda/upcall.c | 6 |
5 files changed, 14 insertions, 8 deletions
diff --git a/fs/coda/coda_linux.h b/fs/coda/coda_linux.h index a3bf7a873ad2..d42b725b1d21 100644 --- a/fs/coda/coda_linux.h +++ b/fs/coda/coda_linux.h | |||
@@ -12,6 +12,12 @@ | |||
12 | #ifndef _LINUX_CODA_FS | 12 | #ifndef _LINUX_CODA_FS |
13 | #define _LINUX_CODA_FS | 13 | #define _LINUX_CODA_FS |
14 | 14 | ||
15 | #ifdef pr_fmt | ||
16 | #undef pr_fmt | ||
17 | #endif | ||
18 | |||
19 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
20 | |||
15 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
16 | #include <linux/param.h> | 22 | #include <linux/param.h> |
17 | #include <linux/mm.h> | 23 | #include <linux/mm.h> |
diff --git a/fs/coda/dir.c b/fs/coda/dir.c index bdd34df79c88..cf2735c2ba6f 100644 --- a/fs/coda/dir.c +++ b/fs/coda/dir.c | |||
@@ -589,7 +589,7 @@ int coda_revalidate_inode(struct inode *inode) | |||
589 | coda_vattr_to_iattr(inode, &attr); | 589 | coda_vattr_to_iattr(inode, &attr); |
590 | 590 | ||
591 | if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { | 591 | if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { |
592 | pr_warn("Coda: inode %ld, fid %s changed type!\n", | 592 | pr_warn("inode %ld, fid %s changed type!\n", |
593 | inode->i_ino, coda_f2s(&(cii->c_fid))); | 593 | inode->i_ino, coda_f2s(&(cii->c_fid))); |
594 | } | 594 | } |
595 | 595 | ||
diff --git a/fs/coda/inode.c b/fs/coda/inode.c index b87d49fea623..b5ee5903c7f7 100644 --- a/fs/coda/inode.c +++ b/fs/coda/inode.c | |||
@@ -247,7 +247,7 @@ static void coda_put_super(struct super_block *sb) | |||
247 | sb->s_fs_info = NULL; | 247 | sb->s_fs_info = NULL; |
248 | mutex_unlock(&vcp->vc_mutex); | 248 | mutex_unlock(&vcp->vc_mutex); |
249 | 249 | ||
250 | pr_info("Coda: Bye bye.\n"); | 250 | pr_info("Bye bye.\n"); |
251 | } | 251 | } |
252 | 252 | ||
253 | static void coda_evict_inode(struct inode *inode) | 253 | static void coda_evict_inode(struct inode *inode) |
diff --git a/fs/coda/psdev.c b/fs/coda/psdev.c index accddf6e2718..39ebb148d0d8 100644 --- a/fs/coda/psdev.c +++ b/fs/coda/psdev.c | |||
@@ -120,7 +120,7 @@ static ssize_t coda_psdev_write(struct file *file, const char __user *buf, | |||
120 | goto out; | 120 | goto out; |
121 | } | 121 | } |
122 | if ( nbytes > size ) { | 122 | if ( nbytes > size ) { |
123 | pr_warn("Coda: downcall opc %d, uniq %d, too much!", | 123 | pr_warn("downcall opc %d, uniq %d, too much!", |
124 | hdr.opcode, hdr.unique); | 124 | hdr.opcode, hdr.unique); |
125 | nbytes = size; | 125 | nbytes = size; |
126 | } | 126 | } |
@@ -400,7 +400,7 @@ static int __init init_coda(void) | |||
400 | 400 | ||
401 | status = register_filesystem(&coda_fs_type); | 401 | status = register_filesystem(&coda_fs_type); |
402 | if (status) { | 402 | if (status) { |
403 | pr_warn("coda: failed to register filesystem!\n"); | 403 | pr_warn("failed to register filesystem!\n"); |
404 | goto out; | 404 | goto out; |
405 | } | 405 | } |
406 | return 0; | 406 | return 0; |
@@ -422,7 +422,7 @@ static void __exit exit_coda(void) | |||
422 | 422 | ||
423 | err = unregister_filesystem(&coda_fs_type); | 423 | err = unregister_filesystem(&coda_fs_type); |
424 | if (err != 0) | 424 | if (err != 0) |
425 | pr_warn("coda: failed to unregister filesystem\n"); | 425 | pr_warn("failed to unregister filesystem\n"); |
426 | for (i = 0; i < MAX_CODADEVS; i++) | 426 | for (i = 0; i < MAX_CODADEVS; i++) |
427 | device_destroy(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR, i)); | 427 | device_destroy(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR, i)); |
428 | class_destroy(coda_psdev_class); | 428 | class_destroy(coda_psdev_class); |
diff --git a/fs/coda/upcall.c b/fs/coda/upcall.c index 5f3b21714c59..0780de514bf2 100644 --- a/fs/coda/upcall.c +++ b/fs/coda/upcall.c | |||
@@ -675,7 +675,7 @@ static int coda_upcall(struct venus_comm *vcp, | |||
675 | mutex_lock(&vcp->vc_mutex); | 675 | mutex_lock(&vcp->vc_mutex); |
676 | 676 | ||
677 | if (!vcp->vc_inuse) { | 677 | if (!vcp->vc_inuse) { |
678 | pr_notice("coda: Venus dead, not sending upcall\n"); | 678 | pr_notice("Venus dead, not sending upcall\n"); |
679 | error = -ENXIO; | 679 | error = -ENXIO; |
680 | goto exit; | 680 | goto exit; |
681 | } | 681 | } |
@@ -725,7 +725,7 @@ static int coda_upcall(struct venus_comm *vcp, | |||
725 | 725 | ||
726 | error = -EINTR; | 726 | error = -EINTR; |
727 | if ((req->uc_flags & CODA_REQ_ABORT) || !signal_pending(current)) { | 727 | if ((req->uc_flags & CODA_REQ_ABORT) || !signal_pending(current)) { |
728 | pr_warn("coda: Unexpected interruption.\n"); | 728 | pr_warn("Unexpected interruption.\n"); |
729 | goto exit; | 729 | goto exit; |
730 | } | 730 | } |
731 | 731 | ||
@@ -735,7 +735,7 @@ static int coda_upcall(struct venus_comm *vcp, | |||
735 | 735 | ||
736 | /* Venus saw the upcall, make sure we can send interrupt signal */ | 736 | /* Venus saw the upcall, make sure we can send interrupt signal */ |
737 | if (!vcp->vc_inuse) { | 737 | if (!vcp->vc_inuse) { |
738 | pr_info("coda: Venus dead, not sending signal.\n"); | 738 | pr_info("Venus dead, not sending signal.\n"); |
739 | goto exit; | 739 | goto exit; |
740 | } | 740 | } |
741 | 741 | ||