ptpd: Fix compilation error when debug messages disabled

The debug macros did not get declared in all setups.
This commit is contained in:
Petteri Aimonen 2023-11-24 10:07:36 +02:00 committed by Xiang Xiao
parent e2168abe9a
commit efc6cfddb4

View File

@ -158,15 +158,13 @@ struct ptp_state_s
*/ */
#ifdef CONFIG_NETUTILS_PTPD_DEBUG #ifdef CONFIG_NETUTILS_PTPD_DEBUG
# ifndef CONFIG_DEBUG_NET_INFO # define ptpinfo _info
# define ptpinfo _info # define ptpwarn _warn
# define ptpwarn _warn # define ptperr _err
# define ptperr _err #else
# else # define ptpinfo ninfo
# define ptpinfo ninfo # define ptpwarn nwarn
# define ptpwarn nwarn # define ptperr nerr
# define ptperr nerr
# endif
#endif #endif
/**************************************************************************** /****************************************************************************