[LTP] [PATCH 2/2] cleanup: changing FILE_PRINTF to SAFE_FILE_PRINTF
Li Wang
liwang@redhat.com
Thu Jun 1 08:44:24 CEST 2023
Hi Petr,
On Fri, May 26, 2023 at 10:25 PM Petr Vorel <pvorel@suse.cz> wrote:
> > --- a/testcases/kernel/device-drivers/cpufreq/cpufreq_boost.c
> > +++ b/testcases/kernel/device-drivers/cpufreq/cpufreq_boost.c
> > @@ -78,10 +78,10 @@ static void check_set_turbo(char *file, char *off)
>
> > static void cleanup(void)
> > {
> > - FILE_PRINTF(cdrv[id].file, "%d", boost_value);
> > + SAFE_FILE_PRINTF(cleanup, cdrv[id].file, "%d", boost_value);
>
> testcases/kernel/device-drivers/cpufreq/cpufreq_boost.c uses old API,
> IMHO not affected by 6440c5d0d15. Therefore we should postpone this till
> it's
> converted to the new API.
>
That's right. I revert the change and pushed it, thanks!!
--
Regards,
Li Wang
More information about the ltp
mailing list