How To Set Driver Debug Log Level
How To Set Driver Debug Log Level
2016/02/22
1 Introduction.
1.1 The driver’s debug log level is as follows,
enum {
_DRV_NONE_ = 0,
_DRV_ALWAYS_ = 1,
_DRV_ERR_ = 2,
_DRV_WARNING_ = 3,
_DRV_INFO_ = 4,
_DRV_DEBUG_ = 5,
_DRV_MAX_ = 6
};
1.2 The default log level is “_DRV_INFO_”.
1.3 The default compiling flag is “CONFIG_RTW_DEBUG”, which
is defined in
“Makefile”.
4 How to disable all debug log level during runtime and inserting
driver module.
4.1 during runtime, please execute the command below,
# echo 0 > /proc/net/rtk8723bs/log_level
4.2 during inserting driver module , please execute the
command below,
# insmod 8723bs.ko rtw_drv_log_level=0
5 How to check current log level during runtime
Use the following command to check log level,
# cat /proc/net/rtl8723bs/log_level
drv_log_level:4
_DRV_NONE_ = 0
_DRV_ALWAYS_ = 1
_DRV_ERR_ = 2
_DRV_WARNING_ = 3
+ _DRV_INFO_ = 4
_DRV_DEBUG_ = 5
_DRV_MAX_ = 6