diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2020-03-05 17:37:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-05 17:37:03 -0500 |
| commit | 498897d8d837f2abee51a0064ee45c639340c5bb (patch) | |
| tree | 45010659cdd6fc20103db249e24b9501c8f11e29 /pbrd/pbr_map.c | |
| parent | 01abb5acde5891f48491282b32a06b873be1f98a (diff) | |
| parent | 15569c58f8001d37bccaed7f99b6987315125036 (diff) | |
Merge pull request #5918 from ton31337/fix/__func__everywhere
__func__ everywhere
Diffstat (limited to 'pbrd/pbr_map.c')
| -rw-r--r-- | pbrd/pbr_map.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/pbrd/pbr_map.c b/pbrd/pbr_map.c index fd77a07fb8..9f4a75fa49 100644 --- a/pbrd/pbr_map.c +++ b/pbrd/pbr_map.c @@ -595,8 +595,8 @@ bool pbr_map_check_valid(const char *name) pbrm = pbrm_find(name); if (!pbrm) { DEBUGD(&pbr_dbg_map, - "%s: Specified PBR-MAP(%s) does not exist?", - __PRETTY_FUNCTION__, name); + "%s: Specified PBR-MAP(%s) does not exist?", __func__, + name); return false; } @@ -726,8 +726,8 @@ void pbr_map_check(struct pbr_map_sequence *pbrms) bool install; pbrm = pbrms->parent; - DEBUGD(&pbr_dbg_map, "%s: for %s(%u)", __PRETTY_FUNCTION__, - pbrm->name, pbrms->seqno); + DEBUGD(&pbr_dbg_map, "%s: for %s(%u)", __func__, pbrm->name, + pbrms->seqno); if (pbr_map_check_valid(pbrm->name)) DEBUGD(&pbr_dbg_map, "We are totally valid %s", pbrm->name); @@ -735,16 +735,13 @@ void pbr_map_check(struct pbr_map_sequence *pbrms) if (pbrms->reason == PBR_MAP_VALID_SEQUENCE_NUMBER) { install = true; DEBUGD(&pbr_dbg_map, "%s: Installing %s(%u) reason: %" PRIu64, - __PRETTY_FUNCTION__, pbrm->name, pbrms->seqno, - pbrms->reason); + __func__, pbrm->name, pbrms->seqno, pbrms->reason); DEBUGD(&pbr_dbg_map, "\tSending PBR_MAP_POLICY_INSTALL event"); } else { install = false; - DEBUGD(&pbr_dbg_map, - "%s: Removing %s(%u) reason: %" PRIu64, - __PRETTY_FUNCTION__, pbrm->name, - pbrms->seqno, pbrms->reason); + DEBUGD(&pbr_dbg_map, "%s: Removing %s(%u) reason: %" PRIu64, + __func__, pbrm->name, pbrms->seqno, pbrms->reason); } if (install) |
