From d1f59bef8ee8b7ea9b2e82de1ac5c6123baca10e Mon Sep 17 00:00:00 2001 From: dongjiuzhu1 Date: Sun, 23 Mar 2025 23:05:52 +0800 Subject: [PATCH] netutils/ptpd: using DEBUG_PTP_ERR/WARN/INFO to replace NETUTILS_PTPD_DEBUG using new ptp clock device debug function Signed-off-by: dongjiuzhu1 --- netutils/ptpd/Kconfig | 7 ------- netutils/ptpd/ptpd.c | 10 ---------- 2 files changed, 17 deletions(-) diff --git a/netutils/ptpd/Kconfig b/netutils/ptpd/Kconfig index 93cd288ca..110223bd7 100644 --- a/netutils/ptpd/Kconfig +++ b/netutils/ptpd/Kconfig @@ -17,13 +17,6 @@ config NETUTILS_PTPD if NETUTILS_PTPD -config NETUTILS_PTPD_DEBUG - bool "Enable PTP debug messages" - default n - depends on DEBUG_INFO - ---help--- - Enable PTP debug messages even if CONFIG_DEBUG_NET_INFO is not enabled. - config NETUTILS_PTPD_CLIENT bool "Enable client support" default y diff --git a/netutils/ptpd/ptpd.c b/netutils/ptpd/ptpd.c index 309f78a07..bdfae08a0 100644 --- a/netutils/ptpd/ptpd.c +++ b/netutils/ptpd/ptpd.c @@ -172,16 +172,6 @@ struct ptp_state_s * debugging without having excessive amount of logging from net. */ -#ifdef CONFIG_NETUTILS_PTPD_DEBUG -# define ptpinfo _info -# define ptpwarn _warn -# define ptperr _err -#else -# define ptpinfo ninfo -# define ptpwarn nwarn -# define ptperr nerr -#endif - /**************************************************************************** * Private Functions ****************************************************************************/