Merge "healthd: Remove warning by clang compiler."

am: 08c8b53800

* commit '08c8b53800fbfec28a8ea94f4443e9a3812b1ab3':
  healthd: Remove warning by clang compiler.
This commit is contained in:
Ruchi Kandoi 2016-02-23 17:36:48 +00:00 committed by android-build-merger
commit 78ed1935e1
1 changed files with 1 additions and 2 deletions

View File

@ -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" : "",