btrfs: add dynamic debug support
authorJeff Mahoney <jeffm@suse.com>
Thu, 1 Sep 2016 03:55:33 +0000 (23:55 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 6 Sep 2016 17:16:36 +0000 (19:16 +0200)
commit160ceedfd40085cfb1e08305917fcc24cefdad93
tree359efa29e8ec9c065083e53265260951c4cf93b1
parent6c490fa26c71e1aeead935fad561b4d62629f3dd
btrfs: add dynamic debug support

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-load time using the 'dyndbg' and
'btrfs.dyndbg' options.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
This page took 0.024686 seconds and 5 git commands to generate.