Skip to content

Commit

Permalink
xfs: cleanup __FUNCTION__ usage
Browse files Browse the repository at this point in the history
__FUNCTION__ exists only for backwards compatibility reasons
with old gcc versions. Replace it with __func__.

Signed-off-by: Dwaipayan Ray <dwaipayanray1@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
  • Loading branch information
Dwaipayan Ray authored and Darrick J. Wong committed Aug 11, 2021
1 parent 5e68b4c commit edf2748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/xfs/xfs_icreate_item.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,15 @@ xlog_recover_icreate_commit_pass2(
if (length != igeo->ialloc_blks &&
length != igeo->ialloc_min_blks) {
xfs_warn(log->l_mp,
"%s: unsupported chunk length", __FUNCTION__);
"%s: unsupported chunk length", __func__);
return -EINVAL;
}

/* verify inode count is consistent with extent length */
if ((count >> mp->m_sb.sb_inopblog) != length) {
xfs_warn(log->l_mp,
"%s: inconsistent inode count and chunk length",
__FUNCTION__);
__func__);
return -EINVAL;
}

Expand Down

0 comments on commit edf2748

Please sign in to comment.