fs/coda: logging prefix uniformization
authorFabian Frederick <fabf@skynet.be>
Fri, 6 Jun 2014 21:36:19 +0000 (14:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Jun 2014 23:08:09 +0000 (16:08 -0700)
- 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>
fs/coda/coda_linux.h
fs/coda/dir.c
fs/coda/inode.c
fs/coda/psdev.c
fs/coda/upcall.c

index a3bf7a873ad29e7f93dffb09cec173a68b8628f3..d42b725b1d21ba6f992c1e5ef600b0081c47efdb 100644 (file)
 #ifndef _LINUX_CODA_FS
 #define _LINUX_CODA_FS
 
+#ifdef pr_fmt
+#undef pr_fmt
+#endif
+
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/kernel.h>
 #include <linux/param.h>
 #include <linux/mm.h>
index bdd34df79c885c358ee007b0ad8dd3719a60f685..cf2735c2ba6f7620d8fb4c6653c8797a3431fafb 100644 (file)
@@ -589,7 +589,7 @@ int coda_revalidate_inode(struct inode *inode)
                coda_vattr_to_iattr(inode, &attr);
 
                if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) {
-                       pr_warn("Coda: inode %ld, fid %s changed type!\n",
+                       pr_warn("inode %ld, fid %s changed type!\n",
                                inode->i_ino, coda_f2s(&(cii->c_fid)));
                }
 
index b87d49fea62381dfc0d97f4733fc379caac4feb9..b5ee5903c7f744d20da767742d68c865a22e6e18 100644 (file)
@@ -247,7 +247,7 @@ static void coda_put_super(struct super_block *sb)
        sb->s_fs_info = NULL;
        mutex_unlock(&vcp->vc_mutex);
 
-       pr_info("Coda: Bye bye.\n");
+       pr_info("Bye bye.\n");
 }
 
 static void coda_evict_inode(struct inode *inode)
index accddf6e271819c889690189897150737de5ba06..39ebb148d0d8d6a4e96b3108f3f14bd2aeca3391 100644 (file)
@@ -120,7 +120,7 @@ static ssize_t coda_psdev_write(struct file *file, const char __user *buf,
                        goto out;
                }
                if ( nbytes > size ) {
-                       pr_warn("Coda: downcall opc %d, uniq %d, too much!",
+                       pr_warn("downcall opc %d, uniq %d, too much!",
                                hdr.opcode, hdr.unique);
                        nbytes = size;
                }
@@ -400,7 +400,7 @@ static int __init init_coda(void)
        
        status = register_filesystem(&coda_fs_type);
        if (status) {
-               pr_warn("coda: failed to register filesystem!\n");
+               pr_warn("failed to register filesystem!\n");
                goto out;
        }
        return 0;
@@ -422,7 +422,7 @@ static void __exit exit_coda(void)
 
        err = unregister_filesystem(&coda_fs_type);
        if (err != 0)
-               pr_warn("coda: failed to unregister filesystem\n");
+               pr_warn("failed to unregister filesystem\n");
        for (i = 0; i < MAX_CODADEVS; i++)
                device_destroy(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR, i));
        class_destroy(coda_psdev_class);
index 5f3b21714c59b8a989569318ec89755421d86664..0780de514bf28aa0532a80c434ce62058b6a459f 100644 (file)
@@ -675,7 +675,7 @@ static int coda_upcall(struct venus_comm *vcp,
        mutex_lock(&vcp->vc_mutex);
 
        if (!vcp->vc_inuse) {
-               pr_notice("coda: Venus dead, not sending upcall\n");
+               pr_notice("Venus dead, not sending upcall\n");
                error = -ENXIO;
                goto exit;
        }
@@ -725,7 +725,7 @@ static int coda_upcall(struct venus_comm *vcp,
 
        error = -EINTR;
        if ((req->uc_flags & CODA_REQ_ABORT) || !signal_pending(current)) {
-               pr_warn("coda: Unexpected interruption.\n");
+               pr_warn("Unexpected interruption.\n");
                goto exit;
        }
 
@@ -735,7 +735,7 @@ static int coda_upcall(struct venus_comm *vcp,
 
        /* Venus saw the upcall, make sure we can send interrupt signal */
        if (!vcp->vc_inuse) {
-               pr_info("coda: Venus dead, not sending signal.\n");
+               pr_info("Venus dead, not sending signal.\n");
                goto exit;
        }