mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
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>
This commit is contained in:
parent
7cb776b74c
commit
c116cab815
|
|
@ -807,7 +807,7 @@ static int tze_seq_show(struct seq_file *s, void *v)
|
|||
seq_printf(s, ",-Mitigation at %llums, duration%c%llums, max. temp=%dm°C\n",
|
||||
ktime_to_ms(tze->timestamp), c, duration_ms, tze->max_temp);
|
||||
|
||||
seq_printf(s, "| trip | type | temp(m°C) | hyst(m°C) | duration(ms) | avg(m°C) | min(m°C) |\n");
|
||||
seq_puts(s, "| trip | type | temp(m°C) | hyst(m°C) | duration(ms) | avg(m°C) | min(m°C) |\n");
|
||||
|
||||
for_each_trip_desc(tz, td) {
|
||||
const struct thermal_trip *trip = &td->trip;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user