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/super.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/super.c')
-rw-r--r-- | fs/affs/super.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/fs/affs/super.c b/fs/affs/super.c index 895ac7dc9dbf..507791263ec8 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c | |||
@@ -220,7 +220,7 @@ parse_options(char *options, kuid_t *uid, kgid_t *gid, int *mode, int *reserved, | |||
220 | return 0; | 220 | return 0; |
221 | if (n != 512 && n != 1024 && n != 2048 | 221 | if (n != 512 && n != 1024 && n != 2048 |
222 | && n != 4096) { | 222 | && n != 4096) { |
223 | printk ("AFFS: Invalid blocksize (512, 1024, 2048, 4096 allowed)\n"); | 223 | pr_warn("Invalid blocksize (512, 1024, 2048, 4096 allowed)\n"); |
224 | return 0; | 224 | return 0; |
225 | } | 225 | } |
226 | *blocksize = n; | 226 | *blocksize = n; |
@@ -285,8 +285,8 @@ parse_options(char *options, kuid_t *uid, kgid_t *gid, int *mode, int *reserved, | |||
285 | /* Silently ignore the quota options */ | 285 | /* Silently ignore the quota options */ |
286 | break; | 286 | break; |
287 | default: | 287 | default: |
288 | printk("AFFS: Unrecognized mount option \"%s\" " | 288 | pr_warn("Unrecognized mount option \"%s\" or missing value\n", |
289 | "or missing value\n", p); | 289 | p); |
290 | return 0; | 290 | return 0; |
291 | } | 291 | } |
292 | } | 292 | } |
@@ -339,7 +339,7 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent) | |||
339 | if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, | 339 | if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, |
340 | &blocksize,&sbi->s_prefix, | 340 | &blocksize,&sbi->s_prefix, |
341 | sbi->s_volume, &mount_flags)) { | 341 | sbi->s_volume, &mount_flags)) { |
342 | printk(KERN_ERR "AFFS: Error parsing options\n"); | 342 | pr_err("Error parsing options\n"); |
343 | return -EINVAL; | 343 | return -EINVAL; |
344 | } | 344 | } |
345 | /* N.B. after this point s_prefix must be released */ | 345 | /* N.B. after this point s_prefix must be released */ |
@@ -407,8 +407,7 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent) | |||
407 | } | 407 | } |
408 | } | 408 | } |
409 | if (!silent) | 409 | if (!silent) |
410 | printk(KERN_ERR "AFFS: No valid root block on device %s\n", | 410 | pr_err("No valid root block on device %s\n", sb->s_id); |
411 | sb->s_id); | ||
412 | return -EINVAL; | 411 | return -EINVAL; |
413 | 412 | ||
414 | /* N.B. after this point bh must be released */ | 413 | /* N.B. after this point bh must be released */ |
@@ -420,7 +419,7 @@ got_root: | |||
420 | /* Find out which kind of FS we have */ | 419 | /* Find out which kind of FS we have */ |
421 | boot_bh = sb_bread(sb, 0); | 420 | boot_bh = sb_bread(sb, 0); |
422 | if (!boot_bh) { | 421 | if (!boot_bh) { |
423 | printk(KERN_ERR "AFFS: Cannot read boot block\n"); | 422 | pr_err("Cannot read boot block\n"); |
424 | return -EINVAL; | 423 | return -EINVAL; |
425 | } | 424 | } |
426 | memcpy(sig, boot_bh->b_data, 4); | 425 | memcpy(sig, boot_bh->b_data, 4); |
@@ -433,8 +432,7 @@ got_root: | |||
433 | */ | 432 | */ |
434 | if ((chksum == FS_DCFFS || chksum == MUFS_DCFFS || chksum == FS_DCOFS | 433 | if ((chksum == FS_DCFFS || chksum == MUFS_DCFFS || chksum == FS_DCOFS |
435 | || chksum == MUFS_DCOFS) && !(sb->s_flags & MS_RDONLY)) { | 434 | || chksum == MUFS_DCOFS) && !(sb->s_flags & MS_RDONLY)) { |
436 | printk(KERN_NOTICE "AFFS: Dircache FS - mounting %s read only\n", | 435 | pr_notice("Dircache FS - mounting %s read only\n", sb->s_id); |
437 | sb->s_id); | ||
438 | sb->s_flags |= MS_RDONLY; | 436 | sb->s_flags |= MS_RDONLY; |
439 | } | 437 | } |
440 | switch (chksum) { | 438 | switch (chksum) { |
@@ -468,14 +466,14 @@ got_root: | |||
468 | sb->s_flags |= MS_NOEXEC; | 466 | sb->s_flags |= MS_NOEXEC; |
469 | break; | 467 | break; |
470 | default: | 468 | default: |
471 | printk(KERN_ERR "AFFS: Unknown filesystem on device %s: %08X\n", | 469 | pr_err("Unknown filesystem on device %s: %08X\n", |
472 | sb->s_id, chksum); | 470 | sb->s_id, chksum); |
473 | return -EINVAL; | 471 | return -EINVAL; |
474 | } | 472 | } |
475 | 473 | ||
476 | if (mount_flags & SF_VERBOSE) { | 474 | if (mount_flags & SF_VERBOSE) { |
477 | u8 len = AFFS_ROOT_TAIL(sb, root_bh)->disk_name[0]; | 475 | u8 len = AFFS_ROOT_TAIL(sb, root_bh)->disk_name[0]; |
478 | printk(KERN_NOTICE "AFFS: Mounting volume \"%.*s\": Type=%.3s\\%c, Blocksize=%d\n", | 476 | pr_notice("Mounting volume \"%.*s\": Type=%.3s\\%c, Blocksize=%d\n", |
479 | len > 31 ? 31 : len, | 477 | len > 31 ? 31 : len, |
480 | AFFS_ROOT_TAIL(sb, root_bh)->disk_name + 1, | 478 | AFFS_ROOT_TAIL(sb, root_bh)->disk_name + 1, |
481 | sig, sig[3] + '0', blocksize); | 479 | sig, sig[3] + '0', blocksize); |
@@ -506,7 +504,7 @@ got_root: | |||
506 | 504 | ||
507 | sb->s_root = d_make_root(root_inode); | 505 | sb->s_root = d_make_root(root_inode); |
508 | if (!sb->s_root) { | 506 | if (!sb->s_root) { |
509 | printk(KERN_ERR "AFFS: Get root inode failed\n"); | 507 | pr_err("AFFS: Get root inode failed\n"); |
510 | return -ENOMEM; | 508 | return -ENOMEM; |
511 | } | 509 | } |
512 | 510 | ||