aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hpfs/buffer.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-06 17:36:34 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-06 19:08:10 -0400
commit14da17f9c4a880e3418f7f04071df3cb2e8636e8 (patch)
tree304cf850a7337b83a5eef2720e23a9dff48469b4 /fs/hpfs/buffer.c
parentb7cb1ce2205c45bf6d356cd358b52adb55bbcf5d (diff)
fs/hpfs: use pr_fmt for logging
Also remove redundant level names (warning:...) Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hpfs/buffer.c')
-rw-r--r--fs/hpfs/buffer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/hpfs/buffer.c b/fs/hpfs/buffer.c
index 4b61be32a91d..e5f62d4cebd8 100644
--- a/fs/hpfs/buffer.c
+++ b/fs/hpfs/buffer.c
@@ -55,7 +55,7 @@ void *hpfs_map_sector(struct super_block *s, unsigned secno, struct buffer_head
55 if (bh != NULL) 55 if (bh != NULL)
56 return bh->b_data; 56 return bh->b_data;
57 else { 57 else {
58 pr_warn("HPFS: hpfs_map_sector: read error\n"); 58 pr_warn("hpfs_map_sector: read error\n");
59 return NULL; 59 return NULL;
60 } 60 }
61} 61}
@@ -76,7 +76,7 @@ void *hpfs_get_sector(struct super_block *s, unsigned secno, struct buffer_head
76 set_buffer_uptodate(bh); 76 set_buffer_uptodate(bh);
77 return bh->b_data; 77 return bh->b_data;
78 } else { 78 } else {
79 pr_warn("HPFS: hpfs_get_sector: getblk failed\n"); 79 pr_warn("hpfs_get_sector: getblk failed\n");
80 return NULL; 80 return NULL;
81 } 81 }
82} 82}
@@ -93,7 +93,7 @@ void *hpfs_map_4sectors(struct super_block *s, unsigned secno, struct quad_buffe
93 cond_resched(); 93 cond_resched();
94 94
95 if (secno & 3) { 95 if (secno & 3) {
96 pr_warn("HPFS: hpfs_map_4sectors: unaligned read\n"); 96 pr_warn("hpfs_map_4sectors: unaligned read\n");
97 return NULL; 97 return NULL;
98 } 98 }
99 99
@@ -112,7 +112,7 @@ void *hpfs_map_4sectors(struct super_block *s, unsigned secno, struct quad_buffe
112 112
113 qbh->data = data = kmalloc(2048, GFP_NOFS); 113 qbh->data = data = kmalloc(2048, GFP_NOFS);
114 if (!data) { 114 if (!data) {
115 pr_warn("HPFS: hpfs_map_4sectors: out of memory\n"); 115 pr_warn("hpfs_map_4sectors: out of memory\n");
116 goto bail4; 116 goto bail4;
117 } 117 }
118 118
@@ -145,7 +145,7 @@ void *hpfs_get_4sectors(struct super_block *s, unsigned secno,
145 hpfs_lock_assert(s); 145 hpfs_lock_assert(s);
146 146
147 if (secno & 3) { 147 if (secno & 3) {
148 pr_warn("HPFS: hpfs_get_4sectors: unaligned read\n"); 148 pr_warn("hpfs_get_4sectors: unaligned read\n");
149 return NULL; 149 return NULL;
150 } 150 }
151 151
@@ -161,7 +161,7 @@ void *hpfs_get_4sectors(struct super_block *s, unsigned secno,
161 } 161 }
162 162
163 if (!(qbh->data = kmalloc(2048, GFP_NOFS))) { 163 if (!(qbh->data = kmalloc(2048, GFP_NOFS))) {
164 pr_warn("HPFS: hpfs_get_4sectors: out of memory\n"); 164 pr_warn("hpfs_get_4sectors: out of memory\n");
165 goto bail4; 165 goto bail4;
166 } 166 }
167 return qbh->data; 167 return qbh->data;