mirror of
https://github.com/S3NEO/android_kernel_samsung_msm8226.git
synced 2024-11-07 03:47:13 +00:00
drivers: sensorhub: stm: Kill all the kmsg spam
* You'd think that we could just disable CONFIG_SEC_DEBUG, but that just makes the Samsung kernel uncompileable. * Move around #defines in the ssp header file so that the right things are unguarded and the debug guard values are set to 0. * Verified that all sensors still work. Change-Id: If7101109571ac49c60c100f37ab334efcbaeccae Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
This commit is contained in:
parent
74c0dfeb8c
commit
e7b1219166
2 changed files with 7 additions and 10 deletions
|
@ -50,16 +50,17 @@
|
|||
#include "ssp_sensorhub.h"
|
||||
#endif
|
||||
|
||||
#define SSP_DBG 1
|
||||
#ifdef CONFIG_SEC_DEBUG
|
||||
#define SSP_SEC_DEBUG 1
|
||||
#else
|
||||
#define SSP_DBG 0
|
||||
#define SSP_DATA_DBG 0
|
||||
#define SSP_FUNC_DBG 0
|
||||
#define SSP_SEC_DEBUG 0
|
||||
#endif
|
||||
#define SUCCESS 1
|
||||
#define FAIL 0
|
||||
#define ERROR -1
|
||||
|
||||
/* ssp mcu device ID */
|
||||
#define DEVICE_ID 0x55
|
||||
|
||||
#define FACTORY_DATA_MAX 100
|
||||
#undef SAVE_MAG_LOG/* Magnetic sensor data logging flag */
|
||||
|
||||
|
@ -73,9 +74,6 @@
|
|||
#define SSP_FUNC_DBG 1
|
||||
#define SSP_DATA_DBG 0
|
||||
|
||||
/* ssp mcu device ID */
|
||||
#define DEVICE_ID 0x55
|
||||
|
||||
|
||||
#define ssp_dbg(dev, format, ...) do { \
|
||||
printk(KERN_INFO dev, format, ##__VA_ARGS__); \
|
||||
|
|
|
@ -199,11 +199,10 @@ int print_mcu_debug(char *pchRcvDataFrame, int *pDataIdx,
|
|||
int iRcvDataFrameLength)
|
||||
{
|
||||
int iLength = pchRcvDataFrame[(*pDataIdx)++];
|
||||
int cur = *pDataIdx;
|
||||
|
||||
if (iLength > iRcvDataFrameLength - *pDataIdx || iLength <= 0) {
|
||||
ssp_dbg("[SSP]: MSG From MCU - invalid debug length(%d/%d/%d)\n",
|
||||
iLength, iRcvDataFrameLength, cur);
|
||||
iLength, iRcvDataFrameLength, *pDataIdx);
|
||||
return iLength ? iLength : ERROR;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue