diff options
-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 9292145712af..64a601cf9b93 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) \ |