[PATCH] cxl: add option to enable -DDEBUG

Uma Krishnan ukrishn at linux.vnet.ibm.com
Mon Jul 18 23:54:05 AEST 2016



On 7/18/2016 5:49 AM, Michael Ellerman wrote:
> Andrew Donnellan <andrew.donnellan at au1.ibm.com> writes:
>
>> Developers working on AFUs and AFU drivers often find it useful to see the
>> pr_devel() and dev_dbg() messages from cxl. Give them an easy way to enable
>> -DDEBUG by adding a Kconfig option, CONFIG_CXL_DEBUG.
>
> Another option is to use DYNAMIC_DEBUG. If you turn that on the
> dev_dbg()'s can be enabled at runtime, and you could en masse or
> selectively convert the pr_devel()s to pr_debug() to get the same
> result.
>
> cheers
>

Andrew, DYNAMIC_DEBUG would be more useful for us because it can be 
enabled at runtime just like we do for cxlflash.



More information about the Linuxppc-dev mailing list