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

Commit 53e5aa93 authored by Ashutosh Joshi's avatar Ashutosh Joshi
Browse files

Use appendFormat instead of append when passing arguments

Using append crashes the system.

Bug: 63804323
Test: On a contrived build with no sensors, dumpsys does not crash the
      sensorservice.

Change-Id: I4ee942d58af8347388f4f5f71c48da339c1cf7e7
parent de1ad9de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -394,7 +394,7 @@ status_t SensorService::dump(int fd, const Vector<String16>& args) {
            }
        } else if (!mSensors.hasAnySensor()) {
            result.append("No Sensors on the device\n");
            result.append("devInitCheck : %d\n", SensorDevice::getInstance().initCheck());
            result.appendFormat("devInitCheck : %d\n", SensorDevice::getInstance().initCheck());
        } else {
            // Default dump the sensor list and debugging information.
            //