Thursday, August 9, 2018

what is the recommended method for adding debug prints in mac80211 based drivers.



https://www.spinics.net/lists/linux-wireless/msg150083.html

On Fri, 2016-04-22 at 17:51 +0530, Krishna Chaitanya wrote:
> What is the recommended method for adding
> debug prints in mac80211 based drivers.
> 
> 1) -DDEBUG + pr_debug ==> used by mac80211, brcm80211
> 2) -DDEBUG + dev_dbg ==> zd1201
> 3) dev_printk(KERN_DEBUG) ==> used by iwlwifi
> 4) printk(KERN_DEBUG) ==> Just to complete the list.

wiphy_dbg -> netif_dbg -> netdev_dbg -> dev_dbg(dev_info) -> pr_debug(pr_info)

and CONFIG_DYNAMIC_DEBUG, no -DDEBUG required

No comments:

Post a Comment