aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_ialloc.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@sgi.com>2005-11-01 18:21:35 -0500
committerNathan Scott <nathans@sgi.com>2005-11-01 18:21:35 -0500
commitda1650a5d6026df1bde414173c40bbe09305e6e6 (patch)
tree09862bd032a5bacf24ba22b1938b529ceef917d7 /fs/xfs/xfs_ialloc.c
parent88741a95af0ecf3a745051bdc1d16897d3990cec (diff)
[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>
Diffstat (limited to 'fs/xfs/xfs_ialloc.c')
-rw-r--r--fs/xfs/xfs_ialloc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c
index ce5fee9eaec5..02989691e4ab 100644
--- a/fs/xfs/xfs_ialloc.c
+++ b/fs/xfs/xfs_ialloc.c
@@ -957,8 +957,11 @@ xfs_difree(
957 agino = XFS_INO_TO_AGINO(mp, inode); 957 agino = XFS_INO_TO_AGINO(mp, inode);
958 if (inode != XFS_AGINO_TO_INO(mp, agno, agino)) { 958 if (inode != XFS_AGINO_TO_INO(mp, agno, agino)) {
959 cmn_err(CE_WARN, 959 cmn_err(CE_WARN,
960 "xfs_difree: inode != XFS_AGINO_TO_INO() (%d != %d) on %s. Returning EINVAL.", 960 "xfs_difree: inode != XFS_AGINO_TO_INO() "
961 inode, XFS_AGINO_TO_INO(mp, agno, agino), mp->m_fsname); 961 "(%llu != %llu) on %s. Returning EINVAL.",
962 (unsigned long long)inode,
963 (unsigned long long)XFS_AGINO_TO_INO(mp, agno, agino),
964 mp->m_fsname);
962 ASSERT(0); 965 ASSERT(0);
963 return XFS_ERROR(EINVAL); 966 return XFS_ERROR(EINVAL);
964 } 967 }