Skip to content

Commit f38cfb2

Browse files
Fabian Fredericktorvalds
authored andcommitted
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>
1 parent d9b4b31 commit f38cfb2

5 files changed

Lines changed: 14 additions & 8 deletions

File tree

‎fs/coda/coda_linux.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
#ifndef _LINUX_CODA_FS
1313
#define _LINUX_CODA_FS
1414

15+
#ifdef pr_fmt
16+
#undef pr_fmt
17+
#endif
18+
19+
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
20+
1521
#include <linux/kernel.h>
1622
#include <linux/param.h>
1723
#include <linux/mm.h>

‎fs/coda/dir.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ int coda_revalidate_inode(struct inode *inode)
589589
coda_vattr_to_iattr(inode, &attr);
590590

591591
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",
593593
inode->i_ino, coda_f2s(&(cii->c_fid)));
594594
}
595595

‎fs/coda/inode.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ static void coda_put_super(struct super_block *sb)
247247
sb->s_fs_info = NULL;
248248
mutex_unlock(&vcp->vc_mutex);
249249

250-
pr_info("Coda: Bye bye.\n");
250+
pr_info("Bye bye.\n");
251251
}
252252

253253
static void coda_evict_inode(struct inode *inode)

‎fs/coda/psdev.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static ssize_t coda_psdev_write(struct file *file, const char __user *buf,
120120
goto out;
121121
}
122122
if ( nbytes > size ) {
123-
pr_warn("Coda: downcall opc %d, uniq %d, too much!",
123+
pr_warn("downcall opc %d, uniq %d, too much!",
124124
hdr.opcode, hdr.unique);
125125
nbytes = size;
126126
}
@@ -400,7 +400,7 @@ static int __init init_coda(void)
400400

401401
status = register_filesystem(&coda_fs_type);
402402
if (status) {
403-
pr_warn("coda: failed to register filesystem!\n");
403+
pr_warn("failed to register filesystem!\n");
404404
goto out;
405405
}
406406
return 0;
@@ -422,7 +422,7 @@ static void __exit exit_coda(void)
422422

423423
err = unregister_filesystem(&coda_fs_type);
424424
if (err != 0)
425-
pr_warn("coda: failed to unregister filesystem\n");
425+
pr_warn("failed to unregister filesystem\n");
426426
for (i = 0; i < MAX_CODADEVS; i++)
427427
device_destroy(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR, i));
428428
class_destroy(coda_psdev_class);

‎fs/coda/upcall.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ static int coda_upcall(struct venus_comm *vcp,
675675
mutex_lock(&vcp->vc_mutex);
676676

677677
if (!vcp->vc_inuse) {
678-
pr_notice("coda: Venus dead, not sending upcall\n");
678+
pr_notice("Venus dead, not sending upcall\n");
679679
error = -ENXIO;
680680
goto exit;
681681
}
@@ -725,7 +725,7 @@ static int coda_upcall(struct venus_comm *vcp,
725725

726726
error = -EINTR;
727727
if ((req->uc_flags & CODA_REQ_ABORT) || !signal_pending(current)) {
728-
pr_warn("coda: Unexpected interruption.\n");
728+
pr_warn("Unexpected interruption.\n");
729729
goto exit;
730730
}
731731

@@ -735,7 +735,7 @@ static int coda_upcall(struct venus_comm *vcp,
735735

736736
/* Venus saw the upcall, make sure we can send interrupt signal */
737737
if (!vcp->vc_inuse) {
738-
pr_info("coda: Venus dead, not sending signal.\n");
738+
pr_info("Venus dead, not sending signal.\n");
739739
goto exit;
740740
}
741741

0 commit comments

Comments
 (0)