diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-06 17:37:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-06 19:08:13 -0400 |
commit | 0158de12b00e7f0e7821c706e91477b6079eb9e9 (patch) | |
tree | 1879248913bb5f03f6ee6b4ba1658634ae1a109c /fs/affs/bitmap.c | |
parent | 0c89d67016081ac40109c5ed8ca7a698805203c2 (diff) |
fs/affs: convert printk to pr_foo()
-All printk(KERN_foo converted to pr_foo()
-Default printk converted to pr_warn()
-Add pr_fmt to affs.h
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/affs/bitmap.c')
-rw-r--r-- | fs/affs/bitmap.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/fs/affs/bitmap.c b/fs/affs/bitmap.c index a32246b8359e..d9559f5d2d1b 100644 --- a/fs/affs/bitmap.c +++ b/fs/affs/bitmap.c | |||
@@ -254,8 +254,7 @@ int affs_init_bitmap(struct super_block *sb, int *flags) | |||
254 | return 0; | 254 | return 0; |
255 | 255 | ||
256 | if (!AFFS_ROOT_TAIL(sb, sbi->s_root_bh)->bm_flag) { | 256 | if (!AFFS_ROOT_TAIL(sb, sbi->s_root_bh)->bm_flag) { |
257 | printk(KERN_NOTICE "AFFS: Bitmap invalid - mounting %s read only\n", | 257 | pr_notice("Bitmap invalid - mounting %s read only\n", sb->s_id); |
258 | sb->s_id); | ||
259 | *flags |= MS_RDONLY; | 258 | *flags |= MS_RDONLY; |
260 | return 0; | 259 | return 0; |
261 | } | 260 | } |
@@ -268,7 +267,7 @@ int affs_init_bitmap(struct super_block *sb, int *flags) | |||
268 | size = sbi->s_bmap_count * sizeof(*bm); | 267 | size = sbi->s_bmap_count * sizeof(*bm); |
269 | bm = sbi->s_bitmap = kzalloc(size, GFP_KERNEL); | 268 | bm = sbi->s_bitmap = kzalloc(size, GFP_KERNEL); |
270 | if (!sbi->s_bitmap) { | 269 | if (!sbi->s_bitmap) { |
271 | printk(KERN_ERR "AFFS: Bitmap allocation failed\n"); | 270 | pr_err("Bitmap allocation failed\n"); |
272 | return -ENOMEM; | 271 | return -ENOMEM; |
273 | } | 272 | } |
274 | 273 | ||
@@ -282,13 +281,13 @@ int affs_init_bitmap(struct super_block *sb, int *flags) | |||
282 | bm->bm_key = be32_to_cpu(bmap_blk[blk]); | 281 | bm->bm_key = be32_to_cpu(bmap_blk[blk]); |
283 | bh = affs_bread(sb, bm->bm_key); | 282 | bh = affs_bread(sb, bm->bm_key); |
284 | if (!bh) { | 283 | if (!bh) { |
285 | printk(KERN_ERR "AFFS: Cannot read bitmap\n"); | 284 | pr_err("Cannot read bitmap\n"); |
286 | res = -EIO; | 285 | res = -EIO; |
287 | goto out; | 286 | goto out; |
288 | } | 287 | } |
289 | if (affs_checksum_block(sb, bh)) { | 288 | if (affs_checksum_block(sb, bh)) { |
290 | printk(KERN_WARNING "AFFS: Bitmap %u invalid - mounting %s read only.\n", | 289 | pr_warn("Bitmap %u invalid - mounting %s read only.\n", |
291 | bm->bm_key, sb->s_id); | 290 | bm->bm_key, sb->s_id); |
292 | *flags |= MS_RDONLY; | 291 | *flags |= MS_RDONLY; |
293 | goto out; | 292 | goto out; |
294 | } | 293 | } |
@@ -304,7 +303,7 @@ int affs_init_bitmap(struct super_block *sb, int *flags) | |||
304 | affs_brelse(bmap_bh); | 303 | affs_brelse(bmap_bh); |
305 | bmap_bh = affs_bread(sb, be32_to_cpu(bmap_blk[blk])); | 304 | bmap_bh = affs_bread(sb, be32_to_cpu(bmap_blk[blk])); |
306 | if (!bmap_bh) { | 305 | if (!bmap_bh) { |
307 | printk(KERN_ERR "AFFS: Cannot read bitmap extension\n"); | 306 | pr_err("Cannot read bitmap extension\n"); |
308 | res = -EIO; | 307 | res = -EIO; |
309 | goto out; | 308 | goto out; |
310 | } | 309 | } |