@@ -534,7 +534,7 @@ static int cramfs_read_super(struct super_block *sb, struct fs_context *fc,
534
534
/* check for wrong endianness */
535
535
if (super -> magic == CRAMFS_MAGIC_WEND ) {
536
536
if (!silent )
537
- errorf (fc , "cramfs: wrong endianness" );
537
+ errorfc (fc , "wrong endianness" );
538
538
return - EINVAL ;
539
539
}
540
540
@@ -546,22 +546,22 @@ static int cramfs_read_super(struct super_block *sb, struct fs_context *fc,
546
546
mutex_unlock (& read_mutex );
547
547
if (super -> magic != CRAMFS_MAGIC ) {
548
548
if (super -> magic == CRAMFS_MAGIC_WEND && !silent )
549
- errorf (fc , "cramfs: wrong endianness" );
549
+ errorfc (fc , "wrong endianness" );
550
550
else if (!silent )
551
- errorf (fc , "cramfs: wrong magic" );
551
+ errorfc (fc , "wrong magic" );
552
552
return - EINVAL ;
553
553
}
554
554
}
555
555
556
556
/* get feature flags first */
557
557
if (super -> flags & ~CRAMFS_SUPPORTED_FLAGS ) {
558
- errorf (fc , "cramfs: unsupported filesystem features" );
558
+ errorfc (fc , "unsupported filesystem features" );
559
559
return - EINVAL ;
560
560
}
561
561
562
562
/* Check that the root inode is in a sane state */
563
563
if (!S_ISDIR (super -> root .mode )) {
564
- errorf (fc , "cramfs: root is not a directory" );
564
+ errorfc (fc , "root is not a directory" );
565
565
return - EINVAL ;
566
566
}
567
567
/* correct strange, hard-coded permissions of mkcramfs */
@@ -580,12 +580,12 @@ static int cramfs_read_super(struct super_block *sb, struct fs_context *fc,
580
580
sbi -> magic = super -> magic ;
581
581
sbi -> flags = super -> flags ;
582
582
if (root_offset == 0 )
583
- infof (fc , "cramfs: empty filesystem" );
583
+ infofc (fc , "empty filesystem" );
584
584
else if (!(super -> flags & CRAMFS_FLAG_SHIFTED_ROOT_OFFSET ) &&
585
585
((root_offset != sizeof (struct cramfs_super )) &&
586
586
(root_offset != 512 + sizeof (struct cramfs_super ))))
587
587
{
588
- errorf (fc , "cramfs: bad root offset %lu" , root_offset );
588
+ errorfc (fc , "bad root offset %lu" , root_offset );
589
589
return - EINVAL ;
590
590
}
591
591
0 commit comments