Re: [PATCH v5] printk: Userspace format enumeration support

From: Chris Down
Date: Fri Apr 16 2021 - 10:29:32 EST

Joe Perches writes:
On Fri, 2021-04-16 at 14:56 +0100, Chris Down wrote:
Any better suggestions? :-)

A gcc plugin that looks for functions marked __printf(fmt, pos)
so any const fmt is stored.

I fail to see any way in which that can solve the problem described, which is mobility of the level information, not the existence of the format itself. `__printf` doesn't communicate or imply any such information, since it's completely level agnostic.