mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
Add _ to the beginning of all debug macros to avoid name collisions
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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...)
|
||||
|
||||
Reference in New Issue
Block a user