printk or pr_<level>?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello guys,

1)
If I use printk(KERN_<LEVEL>...) the checkpatch warns me:
WARNING: Prefer [subsystem eg: netdev]_dbg([subsystem]dev, ... then 
dev_dbg(dev, ... then pr_debug(...  to printk(KERN_DEBUG ...

So, pr_devel() is the correct way to print a debug level msg?

2)
if pr_<level> is the correct way, what about KERN_DEFAULT ?

If I don't put the kern_level (printk("Hello");)
WARNING: printk() should include KERN_ facility level

if I put KERN_DEFAULT:
WARNING: Prefer [subsystem eg: netdev]_default([subsystem]dev, ... then 
dev_default(dev, ... then pr_default(...  to printk(KERN_DEFAULT ...

But for KERN_DEFAULT, there isn't a macro pr_<level> like pr_devel().

Can anyone show me the correct way?

tks




_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux