drivers/*: remove unneeded ENABLE_DEBUG
This commit is contained in:
parent
2198598c50
commit
d2ce652dff
@ -28,18 +28,10 @@
|
|||||||
#define ENABLE_DEBUG 0
|
#define ENABLE_DEBUG 0
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
#if ENABLE_DEBUG
|
|
||||||
|
|
||||||
#define DEBUG_DEV(f, d, ...) \
|
#define DEBUG_DEV(f, d, ...) \
|
||||||
DEBUG("[apds99xx] %s i2c dev=%d addr=%02x: " f "\n", \
|
DEBUG("[apds99xx] %s i2c dev=%d addr=%02x: " f "\n", \
|
||||||
__func__, d->params.dev, APDS99XX_I2C_ADDRESS, ## __VA_ARGS__);
|
__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, ...) \
|
#define ERROR_DEV(f, d, ...) \
|
||||||
LOG_ERROR("[apds99xx] %s i2c dev=%d addr=%02x: " f "\n", \
|
LOG_ERROR("[apds99xx] %s i2c dev=%d addr=%02x: " f "\n", \
|
||||||
__func__, d->params.dev, APDS99XX_I2C_ADDRESS, ## __VA_ARGS__);
|
__func__, d->params.dev, APDS99XX_I2C_ADDRESS, ## __VA_ARGS__);
|
||||||
|
|||||||
@ -27,18 +27,10 @@
|
|||||||
#define ENABLE_DEBUG 0
|
#define ENABLE_DEBUG 0
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
#if ENABLE_DEBUG
|
|
||||||
|
|
||||||
#define DEBUG_DEV(f, d, ...) \
|
#define DEBUG_DEV(f, d, ...) \
|
||||||
DEBUG("[hmc5883l] %s i2c dev=%d addr=%02x: " f "\n", \
|
DEBUG("[hmc5883l] %s i2c dev=%d addr=%02x: " f "\n", \
|
||||||
__func__, d->dev, HMC5883L_I2C_ADDRESS, ## __VA_ARGS__);
|
__func__, d->dev, HMC5883L_I2C_ADDRESS, ## __VA_ARGS__);
|
||||||
|
|
||||||
#else /* ENABLE_DEBUG */
|
|
||||||
|
|
||||||
#define DEBUG_DEV(f, d, ...)
|
|
||||||
|
|
||||||
#endif /* ENABLE_DEBUG */
|
|
||||||
|
|
||||||
#define ERROR_DEV(f, d, ...) \
|
#define ERROR_DEV(f, d, ...) \
|
||||||
LOG_ERROR("[hmc5883l] %s i2c dev=%d addr=%02x: " f "\n", \
|
LOG_ERROR("[hmc5883l] %s i2c dev=%d addr=%02x: " f "\n", \
|
||||||
__func__, d->dev, HMC5883L_I2C_ADDRESS, ## __VA_ARGS__);
|
__func__, d->dev, HMC5883L_I2C_ADDRESS, ## __VA_ARGS__);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user