Merge "healthd: Remove warning by clang compiler." am: 08c8b53800
am: 78ed1935e1
* commit '78ed1935e1508326afb22be4dd7f9961922347fb':
healthd: Remove warning by clang compiler.
This commit is contained in:
commit
bb8ae5d769
|
@ -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