Skip to content

Commit e1ee7d8

Browse files
author
Al Viro
committed
cramfs: switch to use of errofc() et.al.
Signed-off-by: Al Viro <[email protected]>
1 parent 77cb271 commit e1ee7d8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

fs/cramfs/inode.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ static int cramfs_read_super(struct super_block *sb, struct fs_context *fc,
534534
/* check for wrong endianness */
535535
if (super->magic == CRAMFS_MAGIC_WEND) {
536536
if (!silent)
537-
errorf(fc, "cramfs: wrong endianness");
537+
errorfc(fc, "wrong endianness");
538538
return -EINVAL;
539539
}
540540

@@ -546,22 +546,22 @@ static int cramfs_read_super(struct super_block *sb, struct fs_context *fc,
546546
mutex_unlock(&read_mutex);
547547
if (super->magic != CRAMFS_MAGIC) {
548548
if (super->magic == CRAMFS_MAGIC_WEND && !silent)
549-
errorf(fc, "cramfs: wrong endianness");
549+
errorfc(fc, "wrong endianness");
550550
else if (!silent)
551-
errorf(fc, "cramfs: wrong magic");
551+
errorfc(fc, "wrong magic");
552552
return -EINVAL;
553553
}
554554
}
555555

556556
/* get feature flags first */
557557
if (super->flags & ~CRAMFS_SUPPORTED_FLAGS) {
558-
errorf(fc, "cramfs: unsupported filesystem features");
558+
errorfc(fc, "unsupported filesystem features");
559559
return -EINVAL;
560560
}
561561

562562
/* Check that the root inode is in a sane state */
563563
if (!S_ISDIR(super->root.mode)) {
564-
errorf(fc, "cramfs: root is not a directory");
564+
errorfc(fc, "root is not a directory");
565565
return -EINVAL;
566566
}
567567
/* correct strange, hard-coded permissions of mkcramfs */
@@ -580,12 +580,12 @@ static int cramfs_read_super(struct super_block *sb, struct fs_context *fc,
580580
sbi->magic = super->magic;
581581
sbi->flags = super->flags;
582582
if (root_offset == 0)
583-
infof(fc, "cramfs: empty filesystem");
583+
infofc(fc, "empty filesystem");
584584
else if (!(super->flags & CRAMFS_FLAG_SHIFTED_ROOT_OFFSET) &&
585585
((root_offset != sizeof(struct cramfs_super)) &&
586586
(root_offset != 512 + sizeof(struct cramfs_super))))
587587
{
588-
errorf(fc, "cramfs: bad root offset %lu", root_offset);
588+
errorfc(fc, "bad root offset %lu", root_offset);
589589
return -EINVAL;
590590
}
591591

0 commit comments

Comments
 (0)