Add _ to the beginning of all debug macros to avoid name collisions

This commit is contained in:
Gregory Nutt
2016-06-16 12:33:32 -06:00
parent fdaf3d7268
commit 0c8c7fecf0
252 changed files with 1348 additions and 1374 deletions
+396 -394
View File
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -77,16 +77,16 @@
#ifdef CONFIG_CPP_HAVE_VARARGS
# ifdef CONFIG_DEBUG_SHM
# define shmerr(format, ...) err(format, ##__VA_ARGS__)
# define shminfo(format, ...) info(format, ##__VA_ARGS__)
# define shmerr(format, ...) _err(format, ##__VA_ARGS__)
# define shminfo(format, ...) _info(format, ##__VA_ARGS__)
# else
# define shmerr(format, ...) merr(format, ##__VA_ARGS__)
# define shminfo(format, ...) minfo(format, ##__VA_ARGS__)
# endif
#else
# ifdef CONFIG_DEBUG_SHM
# define shmerr err
# define shminfo info
# define shmerr _err
# define shminfo _info
# else
# define shmerr (void)
# define shminfo (void)
+4 -4
View File
@@ -91,10 +91,10 @@
/* NRF24L01 debug */
#ifdef NRF24L01_DEBUG
# define werr(format, ...) err(format, ##__VA_ARGS__)
# define wllerr(format, ...) llerr(format, ##__VA_ARGS__)
# define winfo(format, ...) info(format, ##__VA_ARGS__)
# define wllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
# define werr(format, ...) _err(format, ##__VA_ARGS__)
# define wllerr(format, ...) _llerr(format, ##__VA_ARGS__)
# define winfo(format, ...) _info(format, ##__VA_ARGS__)
# define wllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
#else
# define werr(x...)
# define wllerr(x...)
+1 -1
View File
@@ -50,7 +50,7 @@
****************************************************************************/
/* The following are provided for analysis of returned status values.
* Encoded is as follows as 2 bytes of info(MS) then two bytes of code (LS).
* Encoded is as follows as 2 bytes of _info(MS) then two bytes of code (LS).
* Code:
* 0 - Child has exited, info is the exit code.
* Other values - Not implemented