]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Mon, 26 Sep 2016 15:59:49 +0000 (17:59 +0200)
commitf4308049e14046827d96eb686753b96f3a8d68e5
treec9a0db81d7387ebb4f3cb5199b05a106e08efbc9
parent2d31bf70c03a2982eae99a93f0d95d46d0a54d86
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