aboutsummaryrefslogtreecommitdiffstats
path: root/fs/qnx6/dir.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-08-08 17:23:05 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-08 18:57:26 -0400
commite6c3261653a22f7481791e02fe19d11faac214fb (patch)
tree56f3364872d18d23495b73de55f3037dd56cb803 /fs/qnx6/dir.c
parente00d5b5ad70c6c4fb978fe843c0bbb3294d63223 (diff)
fs/qnx6: use pr_fmt and __func__ in logging
Remove "qnx6:" and "qnx6: " from each logging instruction. Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: Joe Perches <joe@perches.com> Cc: Kai Bankett <chaosman@ontika.net> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/qnx6/dir.c')
-rw-r--r--fs/qnx6/dir.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/qnx6/dir.c b/fs/qnx6/dir.c
index 2289ea180d44..c78a3397c5a9 100644
--- a/fs/qnx6/dir.c
+++ b/fs/qnx6/dir.c
@@ -77,12 +77,12 @@ static int qnx6_dir_longfilename(struct inode *inode,
77 if (de->de_size != 0xff) { 77 if (de->de_size != 0xff) {
78 /* error - long filename entries always have size 0xff 78 /* error - long filename entries always have size 0xff
79 in direntry */ 79 in direntry */
80 pr_err("qnx6: invalid direntry size (%i).\n", de->de_size); 80 pr_err("invalid direntry size (%i).\n", de->de_size);
81 return 0; 81 return 0;
82 } 82 }
83 lf = qnx6_longname(s, de, &page); 83 lf = qnx6_longname(s, de, &page);
84 if (IS_ERR(lf)) { 84 if (IS_ERR(lf)) {
85 pr_err("qnx6:Error reading longname\n"); 85 pr_err("Error reading longname\n");
86 return 0; 86 return 0;
87 } 87 }
88 88
@@ -90,7 +90,7 @@ static int qnx6_dir_longfilename(struct inode *inode,
90 90
91 if (lf_size > QNX6_LONG_NAME_MAX) { 91 if (lf_size > QNX6_LONG_NAME_MAX) {
92 QNX6DEBUG((KERN_INFO "file %s\n", lf->lf_fname)); 92 QNX6DEBUG((KERN_INFO "file %s\n", lf->lf_fname));
93 pr_err("qnx6:Filename too long (%i)\n", lf_size); 93 pr_err("Filename too long (%i)\n", lf_size);
94 qnx6_put_page(page); 94 qnx6_put_page(page);
95 return 0; 95 return 0;
96 } 96 }
@@ -99,7 +99,7 @@ static int qnx6_dir_longfilename(struct inode *inode,
99 mmi 3g filesystem does not have that checksum */ 99 mmi 3g filesystem does not have that checksum */
100 if (!test_opt(s, MMI_FS) && fs32_to_cpu(sbi, de->de_checksum) != 100 if (!test_opt(s, MMI_FS) && fs32_to_cpu(sbi, de->de_checksum) !=
101 qnx6_lfile_checksum(lf->lf_fname, lf_size)) 101 qnx6_lfile_checksum(lf->lf_fname, lf_size))
102 pr_info("qnx6: long filename checksum error.\n"); 102 pr_info("long filename checksum error.\n");
103 103
104 QNX6DEBUG((KERN_INFO "qnx6_readdir:%.*s inode:%u\n", 104 QNX6DEBUG((KERN_INFO "qnx6_readdir:%.*s inode:%u\n",
105 lf_size, lf->lf_fname, de_inode)); 105 lf_size, lf->lf_fname, de_inode));
@@ -135,7 +135,7 @@ static int qnx6_readdir(struct file *file, struct dir_context *ctx)
135 int i = start; 135 int i = start;
136 136
137 if (IS_ERR(page)) { 137 if (IS_ERR(page)) {
138 pr_err("qnx6_readdir: read failed\n"); 138 pr_err("%s(): read failed\n", __func__);
139 ctx->pos = (n + 1) << PAGE_CACHE_SHIFT; 139 ctx->pos = (n + 1) << PAGE_CACHE_SHIFT;
140 return PTR_ERR(page); 140 return PTR_ERR(page);
141 } 141 }
@@ -258,7 +258,7 @@ unsigned qnx6_find_entry(int len, struct inode *dir, const char *name,
258 if (ino) 258 if (ino)
259 goto found; 259 goto found;
260 } else 260 } else
261 pr_err("qnx6: undefined filename size in inode.\n"); 261 pr_err("undefined filename size in inode.\n");
262 } 262 }
263 qnx6_put_page(page); 263 qnx6_put_page(page);
264 } 264 }