ptpd: Fix compilation error when debug messages disabled
The debug macros did not get declared in all setups.
This commit is contained in:
parent
e2168abe9a
commit
efc6cfddb4
@ -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
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user