netutils/ptpd: using DEBUG_PTP_ERR/WARN/INFO to replace NETUTILS_PTPD_DEBUG

using new ptp clock device debug function

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2025-03-23 23:05:52 +08:00 committed by Alan C. Assis
parent e4ddfdeed1
commit d1f59bef8e
2 changed files with 0 additions and 17 deletions

View file

@ -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

View file

@ -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
****************************************************************************/