mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/*: remove unneeded ENABLE_DEBUG
This commit is contained in:
parent
2198598c50
commit
d2ce652dff
@ -28,18 +28,10 @@
|
||||
#define ENABLE_DEBUG 0
|
||||
#include "debug.h"
|
||||
|
||||
#if ENABLE_DEBUG
|
||||
|
||||
#define DEBUG_DEV(f, d, ...) \
|
||||
DEBUG("[apds99xx] %s i2c dev=%d addr=%02x: " f "\n", \
|
||||
__func__, d->params.dev, APDS99XX_I2C_ADDRESS, ## __VA_ARGS__);
|
||||
|
||||
#else /* ENABLE_DEBUG */
|
||||
|
||||
#define DEBUG_DEV(f, d, ...)
|
||||
|
||||
#endif /* ENABLE_DEBUG */
|
||||
|
||||
#define ERROR_DEV(f, d, ...) \
|
||||
LOG_ERROR("[apds99xx] %s i2c dev=%d addr=%02x: " f "\n", \
|
||||
__func__, d->params.dev, APDS99XX_I2C_ADDRESS, ## __VA_ARGS__);
|
||||
|
@ -27,18 +27,10 @@
|
||||
#define ENABLE_DEBUG 0
|
||||
#include "debug.h"
|
||||
|
||||
#if ENABLE_DEBUG
|
||||
|
||||
#define DEBUG_DEV(f, d, ...) \
|
||||
DEBUG("[hmc5883l] %s i2c dev=%d addr=%02x: " f "\n", \
|
||||
__func__, d->dev, HMC5883L_I2C_ADDRESS, ## __VA_ARGS__);
|
||||
|
||||
#else /* ENABLE_DEBUG */
|
||||
|
||||
#define DEBUG_DEV(f, d, ...)
|
||||
|
||||
#endif /* ENABLE_DEBUG */
|
||||
|
||||
#define ERROR_DEV(f, d, ...) \
|
||||
LOG_ERROR("[hmc5883l] %s i2c dev=%d addr=%02x: " f "\n", \
|
||||
__func__, d->dev, HMC5883L_I2C_ADDRESS, ## __VA_ARGS__);
|
||||
|
Loading…
Reference in New Issue
Block a user