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

Commit 41c580c5 authored by Todd Poynor's avatar Todd Poynor Committed by Ruchi Kandoi
Browse files

power: android_battery: nn.n temperature format for /d/android-power



Change-Id: I0c20effcadd3c0673d04be190133883b3c2bf599
Signed-off-by: default avatarTodd Poynor <toddpoynor@google.com>
parent 30a72402
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -359,9 +359,10 @@ static int android_power_debug_dump(struct seq_file *s, void *unused)
	struct android_bat_data *battery = s->private;

	android_bat_update_data(battery);
	seq_printf(s, "l=%d v=%d c=%d temp=%d h=%d st=%d type=%s\n",
	seq_printf(s, "l=%d v=%d c=%d temp=%s%ld.%ld h=%d st=%d type=%s\n",
		   battery->batt_soc, battery->batt_vcell/1000,
		   battery->batt_current, battery->batt_temp,
		   battery->batt_current, battery->batt_temp < 0 ? "-" : "",
		   abs(battery->batt_temp / 10), abs(battery->batt_temp % 10),
		   battery->batt_health, battery->charging_status,
		   charge_source_str(battery->charge_source));