Re: [PATCH] tools/thermal/thermal-engine: Fix format string bug in thermal-engine
From: Daniel Lezcano
Date: Tue Nov 25 2025 - 04:01:04 EST
On 11/24/25 11:43, Malaya Kumar Rout wrote:
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@xxxxxxxxxx>
---
Applied, thanks
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog