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
+2 -2
View File
@@ -124,8 +124,8 @@ CCASSERT(sizeof(cc3000_buffer_desc) <= CONFIG_MQ_MAXMSGSIZE);
# define PROBE(pin,state)
#endif
#define waitllerr(x,...) // llerr
#define waitllinfo(x,...) // llinfo
#define waitllerr(x,...) // _llerr
#define waitllinfo(x,...) // _llinfo
/****************************************************************************
* Private Function Prototypes
+2 -2
View File
@@ -62,8 +62,8 @@
# define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#endif
#define waitllerr(x,...) // llerr
#define waitllinfo(x,...) // llinfo
#define waitllerr(x,...) // _llerr
#define waitllinfo(x,...) // _llinfo
/****************************************************************************
* Private Types
+1 -1
View File
@@ -779,7 +779,7 @@ static int mrf24j40_settxpower(FAR struct ieee802154_dev_s *ieee,
return -EINVAL;
}
llinfo("remaining attenuation: %d mBm\n",txpwr);
_llinfo("remaining attenuation: %d mBm\n",txpwr);
switch(txpwr/100)
{
+2 -2
View File
@@ -57,8 +57,8 @@
****************************************************************************/
#ifdef CONFIG_WL_PN532_DEBUG
# define pn532err err
# define pn532info info
# define pn532err _err
# define pn532info _info
#else
# ifdef CONFIG_CPP_HAVE_VARARGS
# define pn532err(x...)