Merge "healthd: Remove warning by clang compiler."
This commit is contained in:
commit
08c8b53800
1 changed files with 1 additions and 2 deletions
|
|
@ -323,11 +323,10 @@ bool BatteryMonitor::update(void) {
|
||||||
" cc=%d", props.batteryCycleCount);
|
" cc=%d", props.batteryCycleCount);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
snprintf(dmesgline, sizeof(dmesgline),
|
len = snprintf(dmesgline, sizeof(dmesgline),
|
||||||
"battery none");
|
"battery none");
|
||||||
}
|
}
|
||||||
|
|
||||||
len = strlen(dmesgline);
|
|
||||||
snprintf(dmesgline + len, sizeof(dmesgline) - len, " chg=%s%s%s",
|
snprintf(dmesgline + len, sizeof(dmesgline) - len, " chg=%s%s%s",
|
||||||
props.chargerAcOnline ? "a" : "",
|
props.chargerAcOnline ? "a" : "",
|
||||||
props.chargerUsbOnline ? "u" : "",
|
props.chargerUsbOnline ? "u" : "",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue