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
|
#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
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user