mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[XFS] Add format checking to cmn_err and icmn_err
SGI-PV: 942243 SGI-Modid: xfs-linux:xfs-kern:198658a Signed-off-by: Christoph Hellwig <hch@sgi.com> Signed-off-by: Nathan Scott <nathans@sgi.com>
This commit is contained in:
parent
88741a95af
commit
da1650a5d6
7 changed files with 18 additions and 11 deletions
|
@ -957,8 +957,11 @@ xfs_difree(
|
|||
agino = XFS_INO_TO_AGINO(mp, inode);
|
||||
if (inode != XFS_AGINO_TO_INO(mp, agno, agino)) {
|
||||
cmn_err(CE_WARN,
|
||||
"xfs_difree: inode != XFS_AGINO_TO_INO() (%d != %d) on %s. Returning EINVAL.",
|
||||
inode, XFS_AGINO_TO_INO(mp, agno, agino), mp->m_fsname);
|
||||
"xfs_difree: inode != XFS_AGINO_TO_INO() "
|
||||
"(%llu != %llu) on %s. Returning EINVAL.",
|
||||
(unsigned long long)inode,
|
||||
(unsigned long long)XFS_AGINO_TO_INO(mp, agno, agino),
|
||||
mp->m_fsname);
|
||||
ASSERT(0);
|
||||
return XFS_ERROR(EINVAL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue