Merge "healthd: Remove warning by clang compiler." am: 08c8b53800

am: 78ed1935e1

* commit '78ed1935e1508326afb22be4dd7f9961922347fb':
  healthd: Remove warning by clang compiler.
This commit is contained in:
Ruchi Kandoi 2016-02-23 17:41:11 +00:00 committed by android-build-merger
commit bb8ae5d769
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" : "",