power/battery: add baterr, batinfo, batwarn for debug log

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong
2021-10-25 22:43:10 +08:00
committed by Gustavo Henrique Nihei
parent c1e2fd9014
commit 1ed4118378
12 changed files with 73 additions and 142 deletions
+31
View File
@@ -931,6 +931,37 @@ config DEBUG_POWER_INFO
endif # DEBUG_POWER
config DEBUG_BATTERY
bool "Battery-related Debug Features"
default n
---help---
Enable Battery-related debug features.
if DEBUG_BATTERY
config DEBUG_BATTERY_ERROR
bool "Battery-related Error Output"
default n
depends on DEBUG_ERROR
---help---
Enable battery-related error output to SYSLOG.
config DEBUG_BATTERY_WARN
bool "Battery-related Warnings Output"
default n
depends on DEBUG_WARN
---help---
Enable battery-related warning output to SYSLOG.
config DEBUG_BATTERY_INFO
bool "Battery-related Informational Output"
default n
depends on DEBUG_INFO
---help---
Enable battery-related informational output to SYSLOG.
endif # DEBUG_BATTERY
config DEBUG_WIRELESS
bool "Wireless Debug Features"
default n