summaryrefslogtreecommitdiffstats
path: root/lib/vrf.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-03-05 19:17:54 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2020-03-05 19:23:23 +0100
commit15569c58f8001d37bccaed7f99b6987315125036 (patch)
treeb81f9925182682ee2ad7fd969eb1de6f0072ccf8 /lib/vrf.c
parenttools: Add Coccinelle script to replace __FUNCTION__ to __func__ (diff)
downloadfrr-15569c58f8001d37bccaed7f99b6987315125036.tar.xz
frr-15569c58f8001d37bccaed7f99b6987315125036.zip
*: Replace __PRETTY_FUNCTION__/__FUNCTION__ to __func__
Just keep the code cool. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'lib/vrf.c')
-rw-r--r--lib/vrf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/vrf.c b/lib/vrf.c
index c3a94224e..370a1b235 100644
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -493,8 +493,7 @@ void vrf_init(int (*create)(struct vrf *), int (*enable)(struct vrf *),
/* initialise NS, in case VRF backend if NETNS */
ns_init();
if (debug_vrf)
- zlog_debug("%s: Initializing VRF subsystem",
- __PRETTY_FUNCTION__);
+ zlog_debug("%s: Initializing VRF subsystem", __func__);
vrf_master.vrf_new_hook = create;
vrf_master.vrf_enable_hook = enable;
@@ -535,8 +534,7 @@ void vrf_terminate(void)
struct vrf *vrf;
if (debug_vrf)
- zlog_debug("%s: Shutting down vrf subsystem",
- __PRETTY_FUNCTION__);
+ zlog_debug("%s: Shutting down vrf subsystem", __func__);
while (!RB_EMPTY(vrf_id_head, &vrfs_by_id)) {
vrf = RB_ROOT(vrf_id_head, &vrfs_by_id);