ocfs2: neaten do_error, ocfs2_error and ocfs2_abort
These uses sometimes do and sometimes don't have '\n' terminations. Make the uses consistently use '\n' terminations and remove the newline from the functions. Miscellanea: o Coalesce formats o Realign arguments Signed-off-by: Joe Perches <joe@perches.com> Reviewed-by: Mark Fasheh <mfasheh@suse.de> Cc: Joel Becker <jlbec@evilplan.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
d0c97d52f5
commit
7ecef14ab1
@@ -500,26 +500,23 @@ static int ocfs2_validate_xattr_block(struct super_block *sb,
|
||||
|
||||
if (!OCFS2_IS_VALID_XATTR_BLOCK(xb)) {
|
||||
return ocfs2_error(sb,
|
||||
"Extended attribute block #%llu has bad "
|
||||
"signature %.*s",
|
||||
(unsigned long long)bh->b_blocknr, 7,
|
||||
xb->xb_signature);
|
||||
"Extended attribute block #%llu has bad signature %.*s\n",
|
||||
(unsigned long long)bh->b_blocknr, 7,
|
||||
xb->xb_signature);
|
||||
}
|
||||
|
||||
if (le64_to_cpu(xb->xb_blkno) != bh->b_blocknr) {
|
||||
return ocfs2_error(sb,
|
||||
"Extended attribute block #%llu has an "
|
||||
"invalid xb_blkno of %llu",
|
||||
(unsigned long long)bh->b_blocknr,
|
||||
(unsigned long long)le64_to_cpu(xb->xb_blkno));
|
||||
"Extended attribute block #%llu has an invalid xb_blkno of %llu\n",
|
||||
(unsigned long long)bh->b_blocknr,
|
||||
(unsigned long long)le64_to_cpu(xb->xb_blkno));
|
||||
}
|
||||
|
||||
if (le32_to_cpu(xb->xb_fs_generation) != OCFS2_SB(sb)->fs_generation) {
|
||||
return ocfs2_error(sb,
|
||||
"Extended attribute block #%llu has an invalid "
|
||||
"xb_fs_generation of #%u",
|
||||
(unsigned long long)bh->b_blocknr,
|
||||
le32_to_cpu(xb->xb_fs_generation));
|
||||
"Extended attribute block #%llu has an invalid xb_fs_generation of #%u\n",
|
||||
(unsigned long long)bh->b_blocknr,
|
||||
le32_to_cpu(xb->xb_fs_generation));
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -3692,9 +3689,9 @@ static int ocfs2_xattr_get_rec(struct inode *inode,
|
||||
|
||||
if (el->l_tree_depth) {
|
||||
ret = ocfs2_error(inode->i_sb,
|
||||
"Inode %lu has non zero tree depth in "
|
||||
"xattr tree block %llu\n", inode->i_ino,
|
||||
(unsigned long long)eb_bh->b_blocknr);
|
||||
"Inode %lu has non zero tree depth in xattr tree block %llu\n",
|
||||
inode->i_ino,
|
||||
(unsigned long long)eb_bh->b_blocknr);
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
@@ -3709,10 +3706,10 @@ static int ocfs2_xattr_get_rec(struct inode *inode,
|
||||
}
|
||||
|
||||
if (!e_blkno) {
|
||||
ret = ocfs2_error(inode->i_sb, "Inode %lu has bad extent "
|
||||
"record (%u, %u, 0) in xattr", inode->i_ino,
|
||||
le32_to_cpu(rec->e_cpos),
|
||||
ocfs2_rec_clusters(el, rec));
|
||||
ret = ocfs2_error(inode->i_sb, "Inode %lu has bad extent record (%u, %u, 0) in xattr\n",
|
||||
inode->i_ino,
|
||||
le32_to_cpu(rec->e_cpos),
|
||||
ocfs2_rec_clusters(el, rec));
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user