Re: [PATCH] thermal: core: Print out thermal zone name on update_temperature error

From: Daniel Lezcano
Date: Tue Dec 19 2023 - 07:05:58 EST



Hi Konrad,

[Cc: Angelo]

On 19/12/2023 12:48, Konrad Dybcio wrote:
On 18.12.2023 20:40, Rafael J. Wysocki wrote:
On Mon, Dec 18, 2023 at 3:40 PM Konrad Dybcio <konrad.dybcio@xxxxxxxxxx> wrote:

Currently, we can encounter an error like this:

thermal thermal_zone48: failed to read out thermal zone (-19)

It's good to know that there's been an issue, but on some occasions
(like the error happening in the middle of a platform crash), one may
not be able to look up what kind of thermal zone that is.

Add the TZ name to the error message in order to speed up debugging.

s/name/type/ ? It looks like that's what you mean.

First, the tz type is not its name (because there may be multiple
zones of the same type) and it would be consistent with the first
paragraph above.
That's possible, I'm no expert wrt thermal :)

Would you be okay with this change, together with an amended commit
message?

Angelo is looking for how to sort out the name vs type confusion [1].

May be you should wait he comes with a proposal before updating the message?

[1] https://lore.kernel.org/all/3428b2af-5522-4090-995a-10eaee90c28e@xxxxxxxxxx/

--
<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