sx933x: reduce kernel log foot print

Limit number of print messages in run time. If necessary, debug
messages can be truned on dynamically through kernel debug interface
echo "file sx933x.c +p" > /d/dynamic_debug/control

Change-Id: Ic317c4076540600f6838a0dae24ca3aaefcd5f6c
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1264922
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Konstantin Makariev 2018-11-05 16:01:26 -06:00 • committed by Konstantin Makariev
commit e7dc63cfc0

View file

@ -42,9 +42,9 @@
#if SX933x_DEBUG
#define LOG_INFO(fmt, args...) pr_info(LOG_TAG fmt, ##args)
#else
#define LOG_INFO(fmt, args...)
#define LOG_INFO(fmt, args...) pr_debug(LOG_TAG fmt, ##args)
#endif
#define LOG_DBG(fmt, args...) pr_info(LOG_TAG fmt, ##args)
#define LOG_DBG(fmt, args...) pr_debug(LOG_TAG fmt, ##args)
#define USE_DTS_REG