fs/coda: replace printk by pr_foo()
No level printk converted to pr_warn or pr_info 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>
This commit is contained in:
committed by
Linus Torvalds
parent
817e1d902a
commit
d9b4b3195a
+6
-6
@@ -102,7 +102,7 @@ static struct dentry *coda_lookup(struct inode *dir, struct dentry *entry, unsig
|
||||
int type = 0;
|
||||
|
||||
if (length > CODA_MAXNAMLEN) {
|
||||
printk(KERN_ERR "name too long: lookup, %s (%*s)\n",
|
||||
pr_err("name too long: lookup, %s (%*s)\n",
|
||||
coda_i2s(dir), (int)length, name);
|
||||
return ERR_PTR(-ENAMETOOLONG);
|
||||
}
|
||||
@@ -453,7 +453,7 @@ static int coda_venus_readdir(struct file *coda_file, struct dir_context *ctx)
|
||||
ret = kernel_read(host_file, ctx->pos - 2, (char *)vdir,
|
||||
sizeof(*vdir));
|
||||
if (ret < 0) {
|
||||
printk(KERN_ERR "coda readdir: read dir %s failed %d\n",
|
||||
pr_err("coda readdir: read dir %s failed %d\n",
|
||||
coda_f2s(&cii->c_fid), ret);
|
||||
break;
|
||||
}
|
||||
@@ -461,14 +461,14 @@ static int coda_venus_readdir(struct file *coda_file, struct dir_context *ctx)
|
||||
|
||||
/* catch truncated reads */
|
||||
if (ret < vdir_size || ret < vdir_size + vdir->d_namlen) {
|
||||
printk(KERN_ERR "coda readdir: short read on %s\n",
|
||||
pr_err("coda readdir: short read on %s\n",
|
||||
coda_f2s(&cii->c_fid));
|
||||
ret = -EBADF;
|
||||
break;
|
||||
}
|
||||
/* validate whether the directory file actually makes sense */
|
||||
if (vdir->d_reclen < vdir_size + vdir->d_namlen) {
|
||||
printk(KERN_ERR "coda readdir: invalid dir %s\n",
|
||||
pr_err("coda readdir: invalid dir %s\n",
|
||||
coda_f2s(&cii->c_fid));
|
||||
ret = -EBADF;
|
||||
break;
|
||||
@@ -589,8 +589,8 @@ int coda_revalidate_inode(struct inode *inode)
|
||||
coda_vattr_to_iattr(inode, &attr);
|
||||
|
||||
if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) {
|
||||
printk("Coda: inode %ld, fid %s changed type!\n",
|
||||
inode->i_ino, coda_f2s(&(cii->c_fid)));
|
||||
pr_warn("Coda: inode %ld, fid %s changed type!\n",
|
||||
inode->i_ino, coda_f2s(&(cii->c_fid)));
|
||||
}
|
||||
|
||||
/* the following can happen when a local fid is replaced
|
||||
|
||||
Reference in New Issue
Block a user