Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Joe Perches <joe@perches.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>

authored by

Takashi Iwai and committed by
Namjae Jeon
512b74d1 64fca6e6

+4 -4
+1 -1
fs/exfat/fatent.c
··· 331 331 /* find new cluster */ 332 332 if (hint_clu == EXFAT_EOF_CLUSTER) { 333 333 if (sbi->clu_srch_ptr < EXFAT_FIRST_CLUSTER) { 334 - exfat_err(sb, "sbi->clu_srch_ptr is invalid (%u)\n", 334 + exfat_err(sb, "sbi->clu_srch_ptr is invalid (%u)", 335 335 sbi->clu_srch_ptr); 336 336 sbi->clu_srch_ptr = EXFAT_FIRST_CLUSTER; 337 337 }
+1 -1
fs/exfat/nls.c
··· 671 671 672 672 bh = sb_bread(sb, sector); 673 673 if (!bh) { 674 - exfat_err(sb, "failed to read sector(0x%llx)\n", 674 + exfat_err(sb, "failed to read sector(0x%llx)", 675 675 (unsigned long long)sector); 676 676 ret = -EIO; 677 677 goto free_table;
+2 -2
fs/exfat/super.c
··· 464 464 */ 465 465 if (p_boot->sect_size_bits < EXFAT_MIN_SECT_SIZE_BITS || 466 466 p_boot->sect_size_bits > EXFAT_MAX_SECT_SIZE_BITS) { 467 - exfat_err(sb, "bogus sector size bits : %u\n", 467 + exfat_err(sb, "bogus sector size bits : %u", 468 468 p_boot->sect_size_bits); 469 469 return -EINVAL; 470 470 } ··· 473 473 * sect_per_clus_bits could be at least 0 and at most 25 - sect_size_bits. 474 474 */ 475 475 if (p_boot->sect_per_clus_bits > EXFAT_MAX_SECT_PER_CLUS_BITS(p_boot)) { 476 - exfat_err(sb, "bogus sectors bits per cluster : %u\n", 476 + exfat_err(sb, "bogus sectors bits per cluster : %u", 477 477 p_boot->sect_per_clus_bits); 478 478 return -EINVAL; 479 479 }