This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit efc6cfddb404e31e571c843e5ba8d502c20d244f Author: Petteri Aimonen <j...@git.mail.kapsi.fi> AuthorDate: Fri Nov 24 10:07:36 2023 +0200 ptpd: Fix compilation error when debug messages disabled The debug macros did not get declared in all setups. --- netutils/ptpd/ptpd.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/netutils/ptpd/ptpd.c b/netutils/ptpd/ptpd.c index 8a9d89af1..25baad78a 100644 --- a/netutils/ptpd/ptpd.c +++ b/netutils/ptpd/ptpd.c @@ -158,15 +158,13 @@ struct ptp_state_s */ #ifdef CONFIG_NETUTILS_PTPD_DEBUG -# ifndef CONFIG_DEBUG_NET_INFO -# define ptpinfo _info -# define ptpwarn _warn -# define ptperr _err -# else -# define ptpinfo ninfo -# define ptpwarn nwarn -# define ptperr nerr -# endif +# define ptpinfo _info +# define ptpwarn _warn +# define ptperr _err +#else +# define ptpinfo ninfo +# define ptpwarn nwarn +# define ptperr nerr #endif /****************************************************************************