If dynamic debug enabled, sbd_debug() is enabled as default. This is not necessary for plain users. So disable it default.
We can enable it dynamically by following command: echo 'file sheep.c +p' > /sys/kernel/debug/dynamic_debug/control Signed-off-by: Liu Yuan <[email protected]> --- sbd/sbd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbd/sbd.h b/sbd/sbd.h index c6203ef..c0b9ef3 100644 --- a/sbd/sbd.h +++ b/sbd/sbd.h @@ -114,7 +114,7 @@ static inline int sbd_dev_id_to_minor(int id) #if defined(CONFIG_DYNAMIC_DEBUG) && defined _DPRINTK_FLAGS_INCL_MODNAME -# define _SBD_FLAGS (_DPRINTK_FLAGS_PRINT | _DPRINTK_FLAGS_INCL_MODNAME \ +# define _SBD_FLAGS ( _DPRINTK_FLAGS_INCL_MODNAME \ | _DPRINTK_FLAGS_INCL_FUNCNAME | _DPRINTK_FLAGS_INCL_LINENO) # define SBD_DYNAMIC_DEBUG_METADATA(name, fmt) \ -- 1.8.1.2 -- sheepdog mailing list [email protected] http://lists.wpkg.org/mailman/listinfo/sheepdog
