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

ext4: remove trailing \n from ext4_warning/ext4_error calls

Messages passed to ext4_warning() or ext4_error() don't need trailing
newlines, because these function add the newlines themselves.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>

authored by

Jakub Wilk and committed by
Theodore Ts'o
8d2ae1cb c8585c6f

+10 -10
+2 -2
fs/ext4/extents.c
··· 2588 2588 } 2589 2589 } else 2590 2590 ext4_error(sbi->s_sb, "strange request: removal(2) " 2591 - "%u-%u from %u:%u\n", 2591 + "%u-%u from %u:%u", 2592 2592 from, to, le32_to_cpu(ex->ee_block), ee_len); 2593 2593 return 0; 2594 2594 } ··· 3743 3743 if (ee_block != map->m_lblk || ee_len > map->m_len) { 3744 3744 #ifdef EXT4_DEBUG 3745 3745 ext4_warning("Inode (%ld) finished: extent logical block %llu," 3746 - " len %u; IO logical block %llu, len %u\n", 3746 + " len %u; IO logical block %llu, len %u", 3747 3747 inode->i_ino, (unsigned long long)ee_block, ee_len, 3748 3748 (unsigned long long)map->m_lblk, map->m_len); 3749 3749 #endif
+1 -1
fs/ext4/extents_status.c
··· 707 707 (status & EXTENT_STATUS_WRITTEN)) { 708 708 ext4_warning(inode->i_sb, "Inserting extent [%u/%u] as " 709 709 " delayed and written which can potentially " 710 - " cause data loss.\n", lblk, len); 710 + " cause data loss.", lblk, len); 711 711 WARN_ON(1); 712 712 } 713 713
+1 -1
fs/ext4/file.c
··· 378 378 if (ext4_encrypted_inode(d_inode(dir)) && 379 379 !ext4_is_child_context_consistent_with_parent(d_inode(dir), inode)) { 380 380 ext4_warning(inode->i_sb, 381 - "Inconsistent encryption contexts: %lu/%lu\n", 381 + "Inconsistent encryption contexts: %lu/%lu", 382 382 (unsigned long) d_inode(dir)->i_ino, 383 383 (unsigned long) inode->i_ino); 384 384 dput(dir);
+1 -1
fs/ext4/inline.c
··· 1780 1780 ext4_warning(dir->i_sb, 1781 1781 "bad inline directory (dir #%lu) - " 1782 1782 "inode %u, rec_len %u, name_len %d" 1783 - "inline size %d\n", 1783 + "inline size %d", 1784 1784 dir->i_ino, le32_to_cpu(de->inode), 1785 1785 le16_to_cpu(de->rec_len), de->name_len, 1786 1786 inline_size);
+1 -1
fs/ext4/mballoc.c
··· 4935 4935 * boundary. 4936 4936 */ 4937 4937 if (bit + count > EXT4_BLOCKS_PER_GROUP(sb)) { 4938 - ext4_warning(sb, "too much blocks added to group %u\n", 4938 + ext4_warning(sb, "too much blocks added to group %u", 4939 4939 block_group); 4940 4940 err = -EINVAL; 4941 4941 goto error_return;
+2 -2
fs/ext4/mmp.c
··· 121 121 __ext4_warning(sb, function, line, "%s", msg); 122 122 __ext4_warning(sb, function, line, 123 123 "MMP failure info: last update time: %llu, last update " 124 - "node: %s, last update device: %s\n", 124 + "node: %s, last update device: %s", 125 125 (long long unsigned int) le64_to_cpu(mmp->mmp_time), 126 126 mmp->mmp_nodename, mmp->mmp_bdevname); 127 127 } ··· 353 353 * wait for MMP interval and check mmp_seq. 354 354 */ 355 355 if (schedule_timeout_interruptible(HZ * wait_time) != 0) { 356 - ext4_warning(sb, "MMP startup interrupted, failing mount\n"); 356 + ext4_warning(sb, "MMP startup interrupted, failing mount"); 357 357 goto failed; 358 358 } 359 359
+1 -1
fs/ext4/namei.c
··· 1618 1618 if (nokey) 1619 1619 return ERR_PTR(-ENOKEY); 1620 1620 ext4_warning(inode->i_sb, 1621 - "Inconsistent encryption contexts: %lu/%lu\n", 1621 + "Inconsistent encryption contexts: %lu/%lu", 1622 1622 (unsigned long) dir->i_ino, 1623 1623 (unsigned long) inode->i_ino); 1624 1624 return ERR_PTR(-EPERM);
+1 -1
fs/ext4/resize.c
··· 41 41 */ 42 42 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { 43 43 ext4_warning(sb, "There are errors in the filesystem, " 44 - "so online resizing is not allowed\n"); 44 + "so online resizing is not allowed"); 45 45 return -EPERM; 46 46 } 47 47