Require semicolon after debug log statements
This also fixes a warning about an empty body in cortexm.c if PLATFORM_HAS_DEBUG is defined but debugging is not enabled: if (platform_timeout_is_expired(&to)) DEBUG_WARN("Reset seem to be stuck low!\n");
This commit is contained in:
parent
04eab8e1f8
commit
53f022d29b
@ -63,14 +63,14 @@ enum BMP_DEBUG {
|
|||||||
# define DEBUG_WARN printf
|
# define DEBUG_WARN printf
|
||||||
# define DEBUG_INFO printf
|
# define DEBUG_INFO printf
|
||||||
# else
|
# else
|
||||||
# define DEBUG_WARN(...)
|
# define DEBUG_WARN(...) do {} while(0)
|
||||||
# define DEBUG_INFO(...)
|
# define DEBUG_INFO(...) do {} while(0)
|
||||||
# endif
|
# endif
|
||||||
# define DEBUG_GDB(...)
|
# define DEBUG_GDB(...) do {} while(0)
|
||||||
# define DEBUG_TARGET(...)
|
# define DEBUG_TARGET(...) do {} while(0)
|
||||||
# define DEBUG_PROBE(...)
|
# define DEBUG_PROBE(...) do {} while(0)
|
||||||
# define DEBUG_WIRE(...)
|
# define DEBUG_WIRE(...) do {} while(0)
|
||||||
# define DEBUG_GDB_WIRE(...)
|
# define DEBUG_GDB_WIRE(...) do {} while(0)
|
||||||
#else
|
#else
|
||||||
# include <stdarg.h>
|
# include <stdarg.h>
|
||||||
extern int cl_debuglevel;
|
extern int cl_debuglevel;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user