Merge "healthd: Remove warning by clang compiler."
am: 08c8b53800
* commit '08c8b53800fbfec28a8ea94f4443e9a3812b1ab3':
healthd: Remove warning by clang compiler.
This commit is contained in:
commit
78ed1935e1
|
@ -323,11 +323,10 @@ bool BatteryMonitor::update(void) {
|
|||
" cc=%d", props.batteryCycleCount);
|
||||
}
|
||||
} else {
|
||||
snprintf(dmesgline, sizeof(dmesgline),
|
||||
len = snprintf(dmesgline, sizeof(dmesgline),
|
||||
"battery none");
|
||||
}
|
||||
|
||||
len = strlen(dmesgline);
|
||||
snprintf(dmesgline + len, sizeof(dmesgline) - len, " chg=%s%s%s",
|
||||
props.chargerAcOnline ? "a" : "",
|
||||
props.chargerUsbOnline ? "u" : "",
|
||||
|
|
Loading…
Reference in New Issue