[PATCH 02/13] thermal: intel: Prefix log messages via pr_fmt()

From: Ricardo Neri

Date: Mon Nov 09 2026 - 22:40:42 EST


therm_throt.c emits several log messages, but no pr_fmt() is defined, so
dmesg carries no subsystem hint about which file produced a given line.

Define pr_fmt() to prepend KBUILD_MODNAME, matching thermal_core.c and
most Intel-thermal neighbors (intel_powerclamp, x86_pkg_temp_thermal,
intel_soc_dts_thermal, etc.).

While at it, drop the trailing periods from the two DPTI messages that
have them. No other message in this file uses one.

No functional change intended beyond the log message text.

Signed-off-by: Ricardo Neri <ricardo.neri-calderon@xxxxxxxxxxxxxxx>
---
drivers/thermal/intel/therm_throt.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/thermal/intel/therm_throt.c b/drivers/thermal/intel/therm_throt.c
index 1ed604bd70e0..afbccd367c0b 100644
--- a/drivers/thermal/intel/therm_throt.c
+++ b/drivers/thermal/intel/therm_throt.c
@@ -14,6 +14,9 @@
* Credits: Adapted from Zwane Mwaikambo's original code in mce_intel.c.
* Inspired by Ross Biro's and Al Borchers' counter code.
*/
+
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#include <linux/syscore_ops.h>
#include <linux/interrupt.h>
#include <linux/notifier.h>
@@ -717,7 +720,7 @@ static void disable_directed_thermal_pkg_intr(unsigned int cpu)
smp_call_function_single(new_cpu, config_directed_thermal_pkg_intr,
&enable, true);

- pr_warn_once("Failed to redirect package thermal interrupt from CPU%u to CPU%u; reverting to broadcast.\n",
+ pr_warn_once("Failed to redirect package thermal interrupt from CPU%u to CPU%u; reverting to broadcast\n",
cpu, new_cpu);

new_cpu = nr_cpu_ids;
@@ -825,7 +828,7 @@ static int thermal_throttle_online(unsigned int cpu)
intel_hfi_online(cpu);

if (enable_directed_thermal_pkg_intr(cpu)) {
- pr_info_once("Failed to direct package thermal interrupts. All CPUs will receive it.\n");
+ pr_info_once("Failed to direct package thermal interrupts. All CPUs will receive it\n");
cleanup_directed_pkg_thermal_intr();
}


--
2.43.0