Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9320b7c authored by Ruchi Kandoi's avatar Ruchi Kandoi
Browse files

healthd: Remove warning by clang compiler.



Bug: 27265206
Change-Id: I8f2ec1391952de4a9cdefce0433535608a1e9b59
Signed-off-by: default avatarRuchi Kandoi <kandoiruchi@google.com>
parent d633106d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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" : "",