macro version of __func__ ?

Bernd Petrovitsch bernd at petrovitsch.priv.at
Tue Aug 3 15:27:42 EDT 2021


Hi all!

On 03/08/2021 20:43, jim.cromie at gmail.com wrote:
[...]
> there are many uses of :
>   pr_debug("%s ...\n", __func__, ...)
> 
> I tried to do a preprocessor catenation to replace the runtime work,
> but that falls afoul of the def.

And that's a feature because preprocessor concatenation bloats the
kernels memory footprint massively.

[...]
> is there a kernel macro version that would allow this "optimization" ?

pr_*() are slow per se so optimizing there (apart from readability and
size od code+data) is wasted time.

MfG,
	Bernd
-- 
Bernd Petrovitsch                  Email : bernd at petrovitsch.priv.at
     There is NO CLOUD, just other people's computers. - FSFE
                     LUGA : http://www.luga.at



More information about the Kernelnewbies mailing list