aboutsummaryrefslogtreecommitdiffstats
path: root/fs/efs/super.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-04 19:12:11 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-04 19:54:20 -0400
commit179b87fb186b524ec75a5d54c0d7f25e8d559415 (patch)
treea1bebef4ecda08ecb580a4eb3f632e0306ab17de /fs/efs/super.c
parentae3ccc4678fec2d270a4c54981831c7b8a2da9cd (diff)
fs/efs: convert printk to pr_foo()
Convert all except KERN_DEBUG (pr_debug doesn't work the same as printk(KERN_DEBUG and requires special check) Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/efs/super.c')
-rw-r--r--fs/efs/super.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/fs/efs/super.c b/fs/efs/super.c
index 3befcc9f5d63..059023226d55 100644
--- a/fs/efs/super.c
+++ b/fs/efs/super.c
@@ -134,7 +134,7 @@ static const struct export_operations efs_export_ops = {
134 134
135static int __init init_efs_fs(void) { 135static int __init init_efs_fs(void) {
136 int err; 136 int err;
137 printk("EFS: "EFS_VERSION" - http://aeschi.ch.eu.org/efs/\n"); 137 pr_info("EFS: "EFS_VERSION" - http://aeschi.ch.eu.org/efs/\n");
138 err = init_inodecache(); 138 err = init_inodecache();
139 if (err) 139 if (err)
140 goto out1; 140 goto out1;
@@ -179,7 +179,7 @@ static efs_block_t efs_validate_vh(struct volume_header *vh) {
179 csum += be32_to_cpu(cs); 179 csum += be32_to_cpu(cs);
180 } 180 }
181 if (csum) { 181 if (csum) {
182 printk(KERN_INFO "EFS: SGI disklabel: checksum bad, label corrupted\n"); 182 pr_warn("EFS: SGI disklabel: checksum bad, label corrupted\n");
183 return 0; 183 return 0;
184 } 184 }
185 185
@@ -226,11 +226,10 @@ static efs_block_t efs_validate_vh(struct volume_header *vh) {
226 } 226 }
227 227
228 if (slice == -1) { 228 if (slice == -1) {
229 printk(KERN_NOTICE "EFS: partition table contained no EFS partitions\n"); 229 pr_notice("EFS: partition table contained no EFS partitions\n");
230#ifdef DEBUG 230#ifdef DEBUG
231 } else { 231 } else {
232 printk(KERN_INFO "EFS: using slice %d (type %s, offset 0x%x)\n", 232 pr_info("EFS: using slice %d (type %s, offset 0x%x)\n", slice,
233 slice,
234 (pt_entry->pt_name) ? pt_entry->pt_name : "unknown", 233 (pt_entry->pt_name) ? pt_entry->pt_name : "unknown",
235 sblock); 234 sblock);
236#endif 235#endif
@@ -268,7 +267,7 @@ static int efs_fill_super(struct super_block *s, void *d, int silent)
268 267
269 s->s_magic = EFS_SUPER_MAGIC; 268 s->s_magic = EFS_SUPER_MAGIC;
270 if (!sb_set_blocksize(s, EFS_BLOCKSIZE)) { 269 if (!sb_set_blocksize(s, EFS_BLOCKSIZE)) {
271 printk(KERN_ERR "EFS: device does not support %d byte blocks\n", 270 pr_err("EFS: device does not support %d byte blocks\n",
272 EFS_BLOCKSIZE); 271 EFS_BLOCKSIZE);
273 return -EINVAL; 272 return -EINVAL;
274 } 273 }
@@ -277,7 +276,7 @@ static int efs_fill_super(struct super_block *s, void *d, int silent)
277 bh = sb_bread(s, 0); 276 bh = sb_bread(s, 0);
278 277
279 if (!bh) { 278 if (!bh) {
280 printk(KERN_ERR "EFS: cannot read volume header\n"); 279 pr_err("EFS: cannot read volume header\n");
281 return -EINVAL; 280 return -EINVAL;
282 } 281 }
283 282
@@ -295,13 +294,13 @@ static int efs_fill_super(struct super_block *s, void *d, int silent)
295 294
296 bh = sb_bread(s, sb->fs_start + EFS_SUPER); 295 bh = sb_bread(s, sb->fs_start + EFS_SUPER);
297 if (!bh) { 296 if (!bh) {
298 printk(KERN_ERR "EFS: cannot read superblock\n"); 297 pr_err("EFS: cannot read superblock\n");
299 return -EINVAL; 298 return -EINVAL;
300 } 299 }
301 300
302 if (efs_validate_super(sb, (struct efs_super *) bh->b_data)) { 301 if (efs_validate_super(sb, (struct efs_super *) bh->b_data)) {
303#ifdef DEBUG 302#ifdef DEBUG
304 printk(KERN_WARNING "EFS: invalid superblock at block %u\n", sb->fs_start + EFS_SUPER); 303 pr_warn("EFS: invalid superblock at block %u\n", sb->fs_start + EFS_SUPER);
305#endif 304#endif
306 brelse(bh); 305 brelse(bh);
307 return -EINVAL; 306 return -EINVAL;
@@ -310,7 +309,7 @@ static int efs_fill_super(struct super_block *s, void *d, int silent)
310 309
311 if (!(s->s_flags & MS_RDONLY)) { 310 if (!(s->s_flags & MS_RDONLY)) {
312#ifdef DEBUG 311#ifdef DEBUG
313 printk(KERN_INFO "EFS: forcing read-only mode\n"); 312 pr_info("EFS: forcing read-only mode\n");
314#endif 313#endif
315 s->s_flags |= MS_RDONLY; 314 s->s_flags |= MS_RDONLY;
316 } 315 }
@@ -318,13 +317,13 @@ static int efs_fill_super(struct super_block *s, void *d, int silent)
318 s->s_export_op = &efs_export_ops; 317 s->s_export_op = &efs_export_ops;
319 root = efs_iget(s, EFS_ROOTINODE); 318 root = efs_iget(s, EFS_ROOTINODE);
320 if (IS_ERR(root)) { 319 if (IS_ERR(root)) {
321 printk(KERN_ERR "EFS: get root inode failed\n"); 320 pr_err("EFS: get root inode failed\n");
322 return PTR_ERR(root); 321 return PTR_ERR(root);
323 } 322 }
324 323
325 s->s_root = d_make_root(root); 324 s->s_root = d_make_root(root);
326 if (!(s->s_root)) { 325 if (!(s->s_root)) {
327 printk(KERN_ERR "EFS: get root dentry failed\n"); 326 pr_err("EFS: get root dentry failed\n");
328 return -ENOMEM; 327 return -ENOMEM;
329 } 328 }
330 329