linux/tools/thermal
Malaya Kumar Rout 16e802667e tools/thermal/thermal-engine: Fix format string bug in thermal-engine
The error message in the daemon() failure path uses %p format specifier
without providing a corresponding pointer argument, resulting in undefined
behavior and printing garbage values.

Replace %p with %m to properly print the errno error message, which is
the intended behavior when daemon() fails.

This fix ensures proper error reporting when daemonization fails.

Signed-off-by: Malaya Kumar Rout <mrout@redhat.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://patch.msgid.link/20251124104401.374856-1-mrout@redhat.com
2025-11-25 11:00:28 +01:00
..
lib tools: Remove redundant quiet setup 2025-02-18 16:27:43 -03:00
thermal-engine tools/thermal/thermal-engine: Fix format string bug in thermal-engine 2025-11-25 11:00:28 +01:00
thermometer tools/thermal: Fix common realloc mistake 2024-11-15 14:29:03 +01:00
tmon tools/thermal/tmon: Fix compilation warning for wrong format 2024-01-02 09:33:19 +01:00