diff --git a/arch/arm/src/cxd56xx/cxd56_gauge.c b/arch/arm/src/cxd56xx/cxd56_gauge.c index 1decda4d86..769838a7db 100644 --- a/arch/arm/src/cxd56xx/cxd56_gauge.c +++ b/arch/arm/src/cxd56xx/cxd56_gauge.c @@ -52,11 +52,11 @@ /* Debug ********************************************************************/ #ifdef CONFIG_CXD56_GAUGE_DEBUG -#define baterr(fmt, ...) logerr(fmt, ## __VA_ARGS__) -#define batdbg(fmt, ...) logdebug(fmt, ## __VA_ARGS__) +#define baterr(fmt, ...) _err(fmt, ## __VA_ARGS__) +#define batinfo(fmt, ...) _info(fmt, ## __VA_ARGS__) #else #define baterr(fmt, ...) -#define batdbg(fmt, ...) +#define batinfo(fmt, ...) #endif /**************************************************************************** @@ -152,7 +152,7 @@ static int gauge_get_status(FAR enum battery_gauge_status_e *status) break; default: - _info("Charge state %d\n", state); + batinfo("Charge state %d\n", state); *status = BATTERY_IDLE; break; } @@ -394,7 +394,7 @@ int cxd56_gauge_initialize(FAR const char *devpath) ret = register_driver(devpath, &g_gaugeops, 0666, priv); if (ret < 0) { - _err("ERROR: register_driver failed: %d\n", ret); + baterr("ERROR: register_driver failed: %d\n", ret); return -EFAULT; }