mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
fs: use block_device name vsprintf helper
Signed-off-by: Dmitry Monakhov <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
1031bc5892
commit
a1c6f05733
17 changed files with 49 additions and 90 deletions
|
|
@ -80,7 +80,6 @@ static int squashfs_fill_super(struct super_block *sb, void *data, int silent)
|
|||
{
|
||||
struct squashfs_sb_info *msblk;
|
||||
struct squashfs_super_block *sblk = NULL;
|
||||
char b[BDEVNAME_SIZE];
|
||||
struct inode *root;
|
||||
long long root_inode;
|
||||
unsigned short flags;
|
||||
|
|
@ -124,8 +123,8 @@ static int squashfs_fill_super(struct super_block *sb, void *data, int silent)
|
|||
sb->s_magic = le32_to_cpu(sblk->s_magic);
|
||||
if (sb->s_magic != SQUASHFS_MAGIC) {
|
||||
if (!silent)
|
||||
ERROR("Can't find a SQUASHFS superblock on %s\n",
|
||||
bdevname(sb->s_bdev, b));
|
||||
ERROR("Can't find a SQUASHFS superblock on %pg\n",
|
||||
sb->s_bdev);
|
||||
goto failed_mount;
|
||||
}
|
||||
|
||||
|
|
@ -178,7 +177,7 @@ static int squashfs_fill_super(struct super_block *sb, void *data, int silent)
|
|||
msblk->inodes = le32_to_cpu(sblk->inodes);
|
||||
flags = le16_to_cpu(sblk->flags);
|
||||
|
||||
TRACE("Found valid superblock on %s\n", bdevname(sb->s_bdev, b));
|
||||
TRACE("Found valid superblock on %pg\n", sb->s_bdev);
|
||||
TRACE("Inodes are %scompressed\n", SQUASHFS_UNCOMPRESSED_INODES(flags)
|
||||
? "un" : "");
|
||||
TRACE("Data is %scompressed\n", SQUASHFS_UNCOMPRESSED_DATA(flags)
|
||||
|
|
|
|||
Loading…
Reference in a new issue