aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cachefiles/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cachefiles/main.c')
-rw-r--r--fs/cachefiles/main.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/cachefiles/main.c b/fs/cachefiles/main.c
index 4bfa8cf43bf5..180edfb45f66 100644
--- a/fs/cachefiles/main.c
+++ b/fs/cachefiles/main.c
@@ -68,8 +68,7 @@ static int __init cachefiles_init(void)
68 SLAB_HWCACHE_ALIGN, 68 SLAB_HWCACHE_ALIGN,
69 cachefiles_object_init_once); 69 cachefiles_object_init_once);
70 if (!cachefiles_object_jar) { 70 if (!cachefiles_object_jar) {
71 printk(KERN_NOTICE 71 pr_notice("Failed to allocate an object jar\n");
72 "CacheFiles: Failed to allocate an object jar\n");
73 goto error_object_jar; 72 goto error_object_jar;
74 } 73 }
75 74
@@ -77,7 +76,7 @@ static int __init cachefiles_init(void)
77 if (ret < 0) 76 if (ret < 0)
78 goto error_proc; 77 goto error_proc;
79 78
80 printk(KERN_INFO "CacheFiles: Loaded\n"); 79 pr_info("Loaded\n");
81 return 0; 80 return 0;
82 81
83error_proc: 82error_proc:
@@ -85,7 +84,7 @@ error_proc:
85error_object_jar: 84error_object_jar:
86 misc_deregister(&cachefiles_dev); 85 misc_deregister(&cachefiles_dev);
87error_dev: 86error_dev:
88 kerror("failed to register: %d", ret); 87 pr_err("failed to register: %d", ret);
89 return ret; 88 return ret;
90} 89}
91 90
@@ -96,7 +95,7 @@ fs_initcall(cachefiles_init);
96 */ 95 */
97static void __exit cachefiles_exit(void) 96static void __exit cachefiles_exit(void)
98{ 97{
99 printk(KERN_INFO "CacheFiles: Unloading\n"); 98 pr_info("Unloading\n");
100 99
101 cachefiles_proc_cleanup(); 100 cachefiles_proc_cleanup();
102 kmem_cache_destroy(cachefiles_object_jar); 101 kmem_cache_destroy(cachefiles_object_jar);