diff options
author | bz <bz@FreeBSD.org> | 2011-02-11 12:56:05 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2011-02-11 12:56:05 +0000 |
commit | 3bac00c1ca7a74b21a4bbabd3767d1d83f29ddab (patch) | |
tree | 8986112b29f4153b73667428eeaa07dcbafcbc57 /sys/net/vnet.h | |
parent | ccf99673380b81f1263f38c930080470ac13e076 (diff) | |
download | FreeBSD-src-3bac00c1ca7a74b21a4bbabd3767d1d83f29ddab.zip FreeBSD-src-3bac00c1ca7a74b21a4bbabd3767d1d83f29ddab.tar.gz |
Mfp4 CH=177255:
Use __func__ rather than __FUNCTION__.
MFC after: 2 weeks
Diffstat (limited to 'sys/net/vnet.h')
-rw-r--r-- | sys/net/vnet.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/vnet.h b/sys/net/vnet.h index 9292145..64a601c 100644 --- a/sys/net/vnet.h +++ b/sys/net/vnet.h @@ -124,7 +124,7 @@ void vnet_log_recursion(struct vnet *, const char *, int); #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 *, const char *, int); 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) \ |