Skip to content

Commit ea6a3c5

Browse files
committed
thermal/debugfs: Fix up units in "mitigations" files
Print temperature units as m°C rather than °mC (the meaning of which is unclear) and add time unit to the duration column. Signed-off-by: Rafael J. Wysocki <[email protected]> Acked-by: Daniel Lezcano <[email protected]>
1 parent cc86c13 commit ea6a3c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/thermal/thermal_debugfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ static int tze_seq_show(struct seq_file *s, void *v)
800800
seq_printf(s, ",-Mitigation at %llums, duration%c%llums\n",
801801
ktime_to_ms(tze->timestamp), c, duration_ms);
802802

803-
seq_printf(s, "| trip | type | temp(°mC) | hyst(°mC) | duration | avg(°mC) | min(°mC) | max(°mC) |\n");
803+
seq_printf(s, "| trip | type | temp(m°C) | hyst(m°C) | duration(ms) | avg(m°C) | min(m°C) | max(m°C) |\n");
804804

805805
for_each_trip_desc(tz, td) {
806806
const struct thermal_trip *trip = &td->trip;
@@ -846,7 +846,7 @@ static int tze_seq_show(struct seq_file *s, void *v)
846846
8, type,
847847
9, trip_stats->trip_temp,
848848
9, trip_stats->trip_hyst,
849-
c, 10, duration_ms,
849+
c, 11, duration_ms,
850850
9, trip_stats->avg,
851851
9, trip_stats->min,
852852
9, trip_stats->max);

0 commit comments

Comments
 (0)