btrfs-progs: kerncompat: make WARN_ON more verbose
authorDavid Sterba <dsterba@suse.com>
Tue, 4 Oct 2016 16:55:09 +0000 (18:55 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 5 Oct 2016 10:39:01 +0000 (12:39 +0200)
commit26619538da1734250f42cf8eff13fe2c3a291dd7
tree90302389c2f6ecfca7b10437c198455957077411
parenta08ca376f7746b4ec5839bacc4d7d7468a271dac
btrfs-progs: kerncompat: make WARN_ON more verbose

Curretnly WARN_ON would crash but that's not it's purpose. Add helper
that prints the warning, optionally with trace.

Signed-off-by: David Sterba <dsterba@suse.com>
kerncompat.h