diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c
index a40034ac331b032a6c7c88f379530a2e3f3d14c4..fb1d5bf736ed08f751e3adcdd8ef9d6637b5734c 100644
--- a/src/backend/storage/lmgr/lock.c
+++ b/src/backend/storage/lmgr/lock.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.36 1998/09/01 04:32:00 momjian Exp $
+ *	  $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.37 1998/09/09 18:32:05 momjian Exp $
  *
  * NOTES
  *	  Outside modules can create a lock table and acquire/release
@@ -136,18 +136,11 @@ static int WaitOnLock(LOCKMETHOD lockmethod, LOCK *lock, LOCKMODE lockmode,
 		 xidentP->holders[5], \
 		 xidentP->nHolding)
 
-#define LOCK_TPRINTF(lock, args...) \
-	if (((LOCKDEBUG(LOCK_LOCKMETHOD(*(lock))) >= 1) \
-		 && (lock->tag.relId >= lockDebugOidMin)) \
-		|| (lock->tag.relId == lockDebugRelation)) \
-		TPRINTF(TRACE_ALL, args)
-
 #else							/* !LOCK_MGR_DEBUG */
 #define LOCK_PRINT(where,lock,type)
 #define LOCK_PRINT_AUX(where,lock,type)
 #define XID_PRINT(where,xidentP)
 #define XID_PRINT_AUX(where,xidentP)
-#define LOCK_TPRINTF(lock, args...)
 #endif	 /* !LOCK_MGR_DEBUG */
 
 static char *lock_types[] = {
@@ -1217,7 +1210,12 @@ LockRelease(LOCKMETHOD lockmethod, LOCKTAG *locktag, LOCKMODE lockmode)
 		ProcLockWakeup(&(lock->waitProcs), lockmethod, lock);
 	}
 	else
-		LOCK_TPRINTF(lock, "LockRelease: no wakeup needed");
+	{
+		if (((LOCKDEBUG(LOCK_LOCKMETHOD(*(lock))) >= 1) \
+			 && (lock->tag.relId >= lockDebugOidMin)) \
+			|| (lock->tag.relId == lockDebugRelation))
+			TPRINTF(TRACE_ALL, "LockRelease: no wakeup needed");
+	}
 
 	SpinRelease(masterLock);
 	return TRUE;