diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2021-05-31 10:27:51 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2021-06-08 11:50:44 -0300 |
| commit | 461d106dae75e4fc449ff0565040b1d268d75f23 (patch) | |
| tree | ede3befd98b7e9e7f6ac70cd354ec6d8c0c2f372 /lib | |
| parent | 231af0a5d6f8139d85e5d6776c1c9708d1422966 (diff) | |
lib, ospfd, ospf6d: fix logging of pointer addresses
The %p printf format specifier does already print the pointer address
with a leading "0x" prefix (indicating a hexadecimal number). There's
no need to add that prefix manually.
While here, replace explicit function names in log messages by
__func__.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/zclient.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index 10dda5ba0e..4a70881b57 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -3880,9 +3880,8 @@ static int zclient_read(struct thread *thread) length -= ZEBRA_HEADER_SIZE; if (zclient_debug) - zlog_debug("zclient 0x%p command %s VRF %u", - (void *)zclient, zserv_command_string(command), - vrf_id); + zlog_debug("zclient %p command %s VRF %u", zclient, + zserv_command_string(command), vrf_id); switch (command) { case ZEBRA_CAPABILITIES: |
