summaryrefslogtreecommitdiff
path: root/fs/cachefiles/security.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-07 01:37:32 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-07 03:08:14 +0400
commit4e1eb88305135248ad0e927449e457df95d8d9b3 (patch)
tree5751bb25a6bec21e9863d8f554cb2ae55e99160c /fs/cachefiles/security.c
parentef74885353e0ee4d884604148628df3369c76719 (diff)
downloadlinux-4e1eb88305135248ad0e927449e457df95d8d9b3.tar.xz
FS/CACHEFILES: convert printk to pr_foo()
Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/cachefiles/security.c')
-rw-r--r--fs/cachefiles/security.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/cachefiles/security.c b/fs/cachefiles/security.c
index 039b5011d83b..7a6b665f6b1a 100644
--- a/fs/cachefiles/security.c
+++ b/fs/cachefiles/security.c
@@ -34,9 +34,7 @@ int cachefiles_get_security_ID(struct cachefiles_cache *cache)
ret = set_security_override_from_ctx(new, cache->secctx);
if (ret < 0) {
put_cred(new);
- printk(KERN_ERR "CacheFiles:"
- " Security denies permission to nominate"
- " security context: error %d\n",
+ pr_err("CacheFiles: Security denies permission to nominate security context: error %d\n",
ret);
goto error;
}
@@ -59,16 +57,14 @@ static int cachefiles_check_cache_dir(struct cachefiles_cache *cache,
ret = security_inode_mkdir(root->d_inode, root, 0);
if (ret < 0) {
- printk(KERN_ERR "CacheFiles:"
- " Security denies permission to make dirs: error %d",
+ pr_err("CacheFiles: Security denies permission to make dirs: error %d",
ret);
return ret;
}
ret = security_inode_create(root->d_inode, root, 0);
if (ret < 0)
- printk(KERN_ERR "CacheFiles:"
- " Security denies permission to create files: error %d",
+ pr_err("CacheFiles: Security denies permission to create files: error %d",
ret);
return ret;