diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-03-05 20:17:54 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-03-05 20:23:23 +0200 |
| commit | 15569c58f8001d37bccaed7f99b6987315125036 (patch) | |
| tree | b81f9925182682ee2ad7fd969eb1de6f0072ccf8 /pimd/pim_mlag.c | |
| parent | 38e385615ac3355f09e3f8df99a25a1c30af249a (diff) | |
*: Replace __PRETTY_FUNCTION__/__FUNCTION__ to __func__
Just keep the code cool.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'pimd/pim_mlag.c')
| -rw-r--r-- | pimd/pim_mlag.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pimd/pim_mlag.c b/pimd/pim_mlag.c index 1c2f7c563d..cbde45abb8 100644 --- a/pimd/pim_mlag.c +++ b/pimd/pim_mlag.c @@ -186,13 +186,12 @@ static void pim_mlag_up_peer_add(struct mlag_mroute_add *msg) * doesn't already exist. */ if (!PIM_UPSTREAM_FLAG_TEST_MLAG_PEER(up->flags)) - pim_upstream_ref(up, - PIM_UPSTREAM_FLAG_MASK_MLAG_PEER, - __PRETTY_FUNCTION__); + pim_upstream_ref(up, PIM_UPSTREAM_FLAG_MASK_MLAG_PEER, + __func__); } else { PIM_UPSTREAM_FLAG_SET_MLAG_PEER(flags); - up = pim_upstream_add(pim, &sg, NULL /*iif*/, flags, - __PRETTY_FUNCTION__, NULL /*if_ch*/); + up = pim_upstream_add(pim, &sg, NULL /*iif*/, flags, __func__, + NULL /*if_ch*/); if (!up) { if (PIM_DEBUG_MLAG) @@ -218,7 +217,7 @@ static void pim_mlag_up_peer_deref(struct pim_instance *pim, return; PIM_UPSTREAM_FLAG_UNSET_MLAG_PEER(up->flags); - up = pim_upstream_del(pim, up, __PRETTY_FUNCTION__); + up = pim_upstream_del(pim, up, __func__); if (up) pim_mlag_up_df_role_elect(pim, up); } @@ -306,7 +305,7 @@ static void pim_mlag_up_peer_del_all(void) * This is the deletion of the reference added * above */ - pim_upstream_del(pim, up, __PRETTY_FUNCTION__); + pim_upstream_del(pim, up, __func__); } } |
