[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0f5533a-92db-b462-f7bf-14a8d595baa1@linux.intel.com>
Date: Fri, 25 Aug 2023 11:28:17 +0300 (EEST)
From: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
To: Maciej Wieczór-Retman
<maciej.wieczor-retman@...el.com>
cc: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
LKML <linux-kernel@...r.kernel.org>,
Reinette Chatre <reinette.chatre@...el.com>,
fenghua.yu@...el.com
Subject: Re: [PATCH 3/3] selftests: Add printf attribute to ksefltest
prints
On Fri, 25 Aug 2023, Maciej Wieczór-Retman wrote:
> On 2023-08-24 at 16:10:12 +0300, Ilpo Järvinen wrote:
> >On Thu, 24 Aug 2023, Wieczor-Retman, Maciej wrote:
> >
> >> Kselftest header defines multiple variadic function that use printf
> >> along with other logic
> >>
> >> There is no format checking for the variadic functions that use
> >> printing inside kselftest.h. Because of this the compiler won't
> >> be able to catch instances of mismatched print formats and debugging
> >> tests might be more difficult
> >>
> >> Add the common __printf attribute macro to kselftest.h
> >>
> >> Add __printf attribute to every function using formatted printing with
> >> variadic arguments
> >
> >Please add . to terminate the sentences.
>
> Thanks, I'll fix it in the next version
>
> >The patch looks fine:
> >Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
> >
> >...However, there are formatting errors it found yet to fix.
>
> I believe you mean cache.c#L297.
>
> I think I saw you're preparing some patches that remove the line that
> reports the formatting error so I chose to not correct here.
>
> Please let me know if I still should change it or would that be
> redundant.
There are other selftests besides resctrl which had a few warnings.
Making the selftests to rebuild though might be a bit tricky (you won't
see the warnings otherwise), I don't know the command needed to clean
selftests but I guess one can always force their timestamps to force
recompile with:
git ls-files tools/testing/selftests | xargs touch
--
i.
Powered by blists - more mailing lists