[PATCH v1 1/1] treewide: prefer __func__ over __FUNCTION__ and __PRETTY_FUNCTION__

Tom Rini trini at konsulko.com
Thu Jun 11 15:48:25 CEST 2026


On Tue, 26 May 2026 01:41:40 +0000, Aristo Chen wrote:

> __FUNCTION__ and __PRETTY_FUNCTION__ are gcc extensions that predate
> the C99 __func__ identifier. scripts/checkpatch.pl emits a warning
> for any new use of __FUNCTION__ and recommends __func__ instead. In
> C (unlike C++) __PRETTY_FUNCTION__ is identical to __func__ because
> C function names do not carry signature information, so the
> distinction has no behavioural effect here. The majority of the tree
> already uses __func__, but a handful of older files in arch/, board/,
> boot/, drivers/, examples/ and include/ still carry the gcc spellings
> (55 occurrences of __FUNCTION__ across 19 files plus one
> __PRETTY_FUNCTION__ in drivers/usb/musb-new/omap2430.c). Convert
> them all to the C99 form so the tree is consistent and new patches
> in these areas do not have to follow an outdated local style.
> 
> [...]

Applied to u-boot/next, thanks!

[1/1] treewide: prefer __func__ over __FUNCTION__ and __PRETTY_FUNCTION__
      commit: 6c636eabbde7f7915fe37c84395b23c61c66ce64
-- 
Tom




More information about the U-Boot mailing list