On Tue, 2019-07-16 at 17:04 +0200, Willem de Bruijn wrote: > On Tue, Jul 16, 2019 at 4:56 PM Qian Cai <c...@lca.pw> wrote: > > Fix them by using the proper types, and also fix some checkpatch > > warnings by using pr_info(). > > > > WARNING: printk() should include KERN_<LEVEL> facility level > > + printk("%ssk family=%hu type=%u proto=%u\n", > > Converting printk to pr_info lowers all levels to KERN_INFO. > > skb_dump takes an explicit parameter level to be able to log at > KERN_ERR or KERN_WARNING > > I would like to avoid those checkpatch warnings, but this is not the > right approach.
Just ignore checkpatch when it doesn't know that the printk actually includes a KERN_<LEVEL> via "%s...", level