drivers/power: using baterr/batinfo to avoid frequency log output

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2024-07-23 11:58:47 +08:00 committed by Xiang Xiao
parent e26a01d9a6
commit a005f4bff1
3 changed files with 6 additions and 6 deletions

View file

@ -405,7 +405,7 @@ static int bat_charger_ioctl(FAR struct file *filep, int cmd,
break;
default:
_err("ERROR: Unrecognized cmd: %d\n", cmd);
batinfo("ERROR: Unrecognized cmd: %d\n", cmd);
ret = -ENOTTY;
break;
}
@ -529,7 +529,7 @@ int battery_charger_register(FAR const char *devpath,
ret = register_driver(devpath, &g_batteryops, 0666, dev);
if (ret < 0)
{
_err("ERROR: Failed to register driver: %d\n", ret);
baterr("ERROR: Failed to register driver: %d\n", ret);
}
return ret;

View file

@ -365,7 +365,7 @@ static int bat_gauge_ioctl(FAR struct file *filep,
break;
default:
_err("ERROR: Unrecognized cmd: %d\n", cmd);
batinfo("ERROR: Unrecognized cmd: %d\n", cmd);
ret = -ENOTTY;
break;
}
@ -489,7 +489,7 @@ int battery_gauge_register(FAR const char *devpath,
ret = register_driver(devpath, &g_batteryops, 0666, dev);
if (ret < 0)
{
_err("ERROR: Failed to register driver: %d\n", ret);
baterr("ERROR: Failed to register driver: %d\n", ret);
}
return ret;

View file

@ -434,7 +434,7 @@ static int bat_monitor_ioctl(FAR struct file *filep, int cmd,
break;
default:
_err("ERROR: Unrecognized cmd: %d\n", cmd);
batinfo("ERROR: Unrecognized cmd: %d\n", cmd);
ret = -ENOTTY;
break;
}
@ -554,7 +554,7 @@ int battery_monitor_register(FAR const char *devpath,
ret = register_driver(devpath, &g_batteryops, 0555, dev);
if (ret < 0)
{
_err("ERROR: Failed to register driver: %d\n", ret);
baterr("ERROR: Failed to register driver: %d\n", ret);
}
return ret;