exfat: Drop superfluous new line for error messages
authorTakashi Iwai <tiwai@suse.de>
Tue, 26 Jul 2022 08:39:29 +0000 (10:39 +0200)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 1 Aug 2022 01:14:07 +0000 (10:14 +0900)
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>
fs/exfat/fatent.c
fs/exfat/nls.c
fs/exfat/super.c

index 9de6a6b844c9e8bd05a2d3fd181828ca9357b6f5..ee0b7cf51157059c6fee3c6fc6edd67560862c88 100644 (file)
@@ -331,7 +331,7 @@ int exfat_alloc_cluster(struct inode *inode, unsigned int num_alloc,
        /* find new cluster */
        if (hint_clu == EXFAT_EOF_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 = EXFAT_FIRST_CLUSTER;
                }
index 617aa1272265692a149cbdffd42a1b3fde28e76f..705710f93e2ddd3c911df119b2c8e0ca5a9152cd 100644 (file)
@@ -671,7 +671,7 @@ static int exfat_load_upcase_table(struct super_block *sb,
 
                bh = sb_bread(sb, sector);
                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);
                        ret = -EIO;
                        goto free_table;
index 6a4dfe9f31eeeb5bddeeb75d38421548e70f7153..35f0305cd493cc1fd961ca170e5c033c6928dd17 100644 (file)
@@ -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 ||
            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);
                return -EINVAL;
        }
@@ -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.
         */
        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);
                return -EINVAL;
        }