Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2011 12:56:05 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r218555 - head/sys/net
Message-ID:  <201102111256.p1BCu5Z7060213@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Fri Feb 11 12:56:05 2011
New Revision: 218555
URL: http://svn.freebsd.org/changeset/base/218555

Log:
  Mfp4 CH=177255:
  
    Use __func__ rather than __FUNCTION__.
  
  MFC after:	2 weeks

Modified:
  head/sys/net/vnet.h

Modified: head/sys/net/vnet.h
==============================================================================
--- head/sys/net/vnet.h	Fri Feb 11 12:26:23 2011	(r218554)
+++ head/sys/net/vnet.h	Fri Feb 11 12:56:05 2011	(r218555)
@@ -124,7 +124,7 @@ void vnet_log_recursion(struct vnet *, c
 #define	VNET_ASSERT(condition)						\
 	if (!(condition)) {						\
 		printf("VNET_ASSERT @ %s:%d %s():\n",			\
-			__FILE__, __LINE__, __FUNCTION__);		\
+			__FILE__, __LINE__, __func__);			\
 		panic(#condition);					\
 	}
 
@@ -133,7 +133,7 @@ void vnet_log_recursion(struct vnet *, c
 	struct vnet *saved_vnet = curvnet;				\
 	const char *saved_vnet_lpush = curthread->td_vnet_lpush;	\
 	curvnet = arg;							\
-	curthread->td_vnet_lpush = __FUNCTION__;
+	curthread->td_vnet_lpush = __func__;
  
 #define	CURVNET_SET_VERBOSE(arg)					\
 	CURVNET_SET_QUIET(arg)						\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102111256.p1BCu5Z7060213>