arch: cxd56xx: gauge: Use the dedicated debug macro
Replace to the battery dedicated debug macro instead of standard one.
This commit is contained in:
parent
50cb0306b6
commit
efd4789b72
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user