From 461d106dae75e4fc449ff0565040b1d268d75f23 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Mon, 31 May 2021 10:27:51 -0300 Subject: 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 --- lib/zclient.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/zclient.c') 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: -- cgit v1.2.3