diff options
author | Zhilong Liu <zlliu@suse.com> | 2016-06-19 23:52:46 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2016-06-21 09:04:24 -0500 |
commit | 505ee5283c3d23220dfbf7630bfc4efdc391e743 (patch) | |
tree | df0138f800d0985a808c53901ad18f1d6f45990d /fs/dlm/dlm_internal.h | |
parent | 33688abb2802ff3a230bd2441f765477b94cc89e (diff) | |
download | blackbird-obmc-linux-505ee5283c3d23220dfbf7630bfc4efdc391e743.tar.gz blackbird-obmc-linux-505ee5283c3d23220dfbf7630bfc4efdc391e743.zip |
dlm: add log_info config option
This config option can be used to disable the
LOG_INFO recovery messages.
Signed-off-by: Zhilong Liu <zlliu@suse.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/dlm_internal.h')
-rw-r--r-- | fs/dlm/dlm_internal.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/fs/dlm/dlm_internal.h b/fs/dlm/dlm_internal.h index 5eff6ea3e27f..216b61604ef9 100644 --- a/fs/dlm/dlm_internal.h +++ b/fs/dlm/dlm_internal.h @@ -65,8 +65,16 @@ struct dlm_mhandle; printk(KERN_ERR "dlm: "fmt"\n" , ##args) #define log_error(ls, fmt, args...) \ printk(KERN_ERR "dlm: %s: " fmt "\n", (ls)->ls_name , ##args) + #define log_rinfo(ls, fmt, args...) \ - printk(KERN_INFO "dlm: %s: " fmt "\n", (ls)->ls_name , ##args); +do { \ + if (dlm_config.ci_log_info) \ + printk(KERN_INFO "dlm: %s: " fmt "\n", \ + (ls)->ls_name, ##args); \ + else if (dlm_config.ci_log_debug) \ + printk(KERN_DEBUG "dlm: %s: " fmt "\n", \ + (ls)->ls_name , ##args); \ +} while (0) #define log_debug(ls, fmt, args...) \ do { \ |