aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/lmgr/s_lock.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2022-08-07 09:36:01 -0700
committerAndres Freund <andres@anarazel.de>2022-08-07 09:36:01 -0700
commit320f92b744b44f961e5d56f5f21de003e8027a7f (patch)
tree27ddd145bc88ec953aea588acf387dbcdecd408e /src/backend/storage/lmgr/s_lock.c
parentafe58c8b746cac1e2c3e9f0fc96a0f69a46c84d3 (diff)
downloadpostgresql-320f92b744b44f961e5d56f5f21de003e8027a7f.tar.gz
postgresql-320f92b744b44f961e5d56f5f21de003e8027a7f.zip
Rely on __func__ being supported
Previously we fell back to __FUNCTION__ and then NULL. As __func__ is in C99 that shouldn't be necessary anymore. Solution.pm defined HAVE_FUNCNAME__FUNCTION instead of HAVE_FUNCNAME__FUNC (originating in 4164e6636e2), as at some point in the past MSVC only supported __FUNCTION__. Our minimum version supports __func__. Reviewed-By: Thomas Munro <thomas.munro@gmail.com> Discussion: https://postgr.es/m/20220807012914.ydz73yte6j3coulo@awork3.anarazel.de
Diffstat (limited to 'src/backend/storage/lmgr/s_lock.c')
-rw-r--r--src/backend/storage/lmgr/s_lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/lmgr/s_lock.c b/src/backend/storage/lmgr/s_lock.c
index 2a658ff594c..4e473ec27ec 100644
--- a/src/backend/storage/lmgr/s_lock.c
+++ b/src/backend/storage/lmgr/s_lock.c
@@ -304,7 +304,7 @@ main()
printf(" if S_LOCK() and TAS() are working.\n");
fflush(stdout);
- s_lock(&test_lock.lock, __FILE__, __LINE__, PG_FUNCNAME_MACRO);
+ s_lock(&test_lock.lock, __FILE__, __LINE__, __func__);
printf("S_LOCK_TEST: failed, lock not locked\n");
return 1;