Messages in this thread | | | Date | Fri, 16 Apr 2021 15:29:22 +0100 | From | Chris Down <> | Subject | Re: [PATCH v5] printk: Userspace format enumeration support |
| |
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.
| |