xfs: cleanup __FUNCTION__ usage
authorDwaipayan Ray <dwaipayanray1@gmail.com>
Mon, 9 Aug 2021 17:14:45 +0000 (10:14 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 11 Aug 2021 16:13:12 +0000 (09:13 -0700)
__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>
fs/xfs/xfs_icreate_item.c

index 9b3994b..017904a 100644 (file)
@@ -201,7 +201,7 @@ 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;
        }
 
@@ -209,7 +209,7 @@ xlog_recover_icreate_commit_pass2(
        if ((count >> mp->m_sb.sb_inopblog) != length) {
                xfs_warn(log->l_mp,
                         "%s: inconsistent inode count and chunk length",
-                        __FUNCTION__);
+                        __func__);
                return -EINVAL;
        }