Re: [LTP] [PATCH v2] thermal: add new test group

Petr Vorel
2026-01-23T19:48:59Z

Hi Piotr,

...
> Hi,

> I tried:
> SAFE_SSCANF(line, " TRM:%sThermal event interrupts", buffer);

I'm sorry, you wrote that, but I did not get that the line is based on number of
CPU core (I meant scanning into integer variables).

> But it's the same as before, only the first number ends up in the
> buffer. Still, even if I managed to put them all into buffer, I would
> still need to later divide them into individual elements of
> interrupt_array and strtok seems fit for that.

I'm usually trying to avoid using strtok(), but whatever.

Kind regards,
Petr