Re: [PATCH] btrfs: add dynamic debug support

2016-09-01 Thread David Sterba
On Wed, Aug 31, 2016 at 11:55:33PM -0400, Jeff Mahoney wrote: > We can re-use the dynamic debugging descriptor to make use of the dynamic > debugging mechanism but still use our own printk interface. > > Defining the DEBUG macro works as it did before. When it's defined, > all of the messages def

[PATCH] btrfs: add dynamic debug support

2016-08-31 Thread Jeff Mahoney
We can re-use the dynamic debugging descriptor to make use of the dynamic debugging mechanism but still use our own printk interface. Defining the DEBUG macro works as it did before. When it's defined, all of the messages default to print. We can also enable all debug messages at boot or module-