Commit 512b74d1 authored by Takashi Iwai's avatar Takashi Iwai Committed by Namjae Jeon

exfat: Drop superfluous new line for error messages

exfat_err() adds the new line at the end of the message by itself,
hence the passed string shouldn't contain a new line.  Drop the
superfluous newline letters in the error messages in a few places that
have been put mistakenly.
Reported-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
parent 64fca6e6
...@@ -331,7 +331,7 @@ int exfat_alloc_cluster(struct inode *inode, unsigned int num_alloc, ...@@ -331,7 +331,7 @@ int exfat_alloc_cluster(struct inode *inode, unsigned int num_alloc,
/* find new cluster */ /* find new cluster */
if (hint_clu == EXFAT_EOF_CLUSTER) { if (hint_clu == EXFAT_EOF_CLUSTER) {
if (sbi->clu_srch_ptr < EXFAT_FIRST_CLUSTER) { if (sbi->clu_srch_ptr < EXFAT_FIRST_CLUSTER) {
exfat_err(sb, "sbi->clu_srch_ptr is invalid (%u)\n", exfat_err(sb, "sbi->clu_srch_ptr is invalid (%u)",
sbi->clu_srch_ptr); sbi->clu_srch_ptr);
sbi->clu_srch_ptr = EXFAT_FIRST_CLUSTER; sbi->clu_srch_ptr = EXFAT_FIRST_CLUSTER;
} }
......
...@@ -671,7 +671,7 @@ static int exfat_load_upcase_table(struct super_block *sb, ...@@ -671,7 +671,7 @@ static int exfat_load_upcase_table(struct super_block *sb,
bh = sb_bread(sb, sector); bh = sb_bread(sb, sector);
if (!bh) { if (!bh) {
exfat_err(sb, "failed to read sector(0x%llx)\n", exfat_err(sb, "failed to read sector(0x%llx)",
(unsigned long long)sector); (unsigned long long)sector);
ret = -EIO; ret = -EIO;
goto free_table; goto free_table;
......
...@@ -464,7 +464,7 @@ static int exfat_read_boot_sector(struct super_block *sb) ...@@ -464,7 +464,7 @@ static int exfat_read_boot_sector(struct super_block *sb)
*/ */
if (p_boot->sect_size_bits < EXFAT_MIN_SECT_SIZE_BITS || if (p_boot->sect_size_bits < EXFAT_MIN_SECT_SIZE_BITS ||
p_boot->sect_size_bits > EXFAT_MAX_SECT_SIZE_BITS) { p_boot->sect_size_bits > EXFAT_MAX_SECT_SIZE_BITS) {
exfat_err(sb, "bogus sector size bits : %u\n", exfat_err(sb, "bogus sector size bits : %u",
p_boot->sect_size_bits); p_boot->sect_size_bits);
return -EINVAL; return -EINVAL;
} }
...@@ -473,7 +473,7 @@ static int exfat_read_boot_sector(struct super_block *sb) ...@@ -473,7 +473,7 @@ static int exfat_read_boot_sector(struct super_block *sb)
* sect_per_clus_bits could be at least 0 and at most 25 - sect_size_bits. * sect_per_clus_bits could be at least 0 and at most 25 - sect_size_bits.
*/ */
if (p_boot->sect_per_clus_bits > EXFAT_MAX_SECT_PER_CLUS_BITS(p_boot)) { if (p_boot->sect_per_clus_bits > EXFAT_MAX_SECT_PER_CLUS_BITS(p_boot)) {
exfat_err(sb, "bogus sectors bits per cluster : %u\n", exfat_err(sb, "bogus sectors bits per cluster : %u",
p_boot->sect_per_clus_bits); p_boot->sect_per_clus_bits);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment