Skip to content

Commit c116cab

Browse files
sumeet4linuxrafaeljw
authored andcommitted
thermal: debugfs: Use seq_puts() for constant string output
Replace seq_printf() with seq_puts() when outputting a constant string without format specifiers in the thermal mitigation debugfs interface. seq_puts() is more appropriate and efficient as it avoids unnecessary format string parsing overhead. No functional change. Signed-off-by: Sumeet Pawnikar <sumeet4linux@gmail.com> Link: https://patch.msgid.link/20260110183912.372215-1-sumeet4linux@gmail.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 7cb776b commit c116cab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/thermal/thermal_debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ static int tze_seq_show(struct seq_file *s, void *v)
807807
seq_printf(s, ",-Mitigation at %llums, duration%c%llums, max. temp=%dm°C\n",
808808
ktime_to_ms(tze->timestamp), c, duration_ms, tze->max_temp);
809809

810-
seq_printf(s, "| trip | type | temp(m°C) | hyst(m°C) | duration(ms) | avg(m°C) | min(m°C) |\n");
810+
seq_puts(s, "| trip | type | temp(m°C) | hyst(m°C) | duration(ms) | avg(m°C) | min(m°C) |\n");
811811

812812
for_each_trip_desc(tz, td) {
813813
const struct thermal_trip *trip = &td->trip;

0 commit comments

Comments
 (0)