summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaadi Maalem <saadi.maalem@intel.com>2015-09-24 15:44:31 +0800
committerZhengyin Qian <qianzy@google.com>2015-09-29 10:50:23 -0700
commitf86fa3afd78bddbfd51ce5082fb455d3c5e581a0 (patch)
tree23a89d059e317296f85d8b49bf2ce45ab1d70968
parent7973c2ff4cbf36141ffe6d984a0a97f5d045c865 (diff)
downloadsensors-f86fa3afd78bddbfd51ce5082fb455d3c5e581a0.tar.gz
sensor: remove debug logs from HAL code of tilt and ALS
debug logs should be removed for production build. Change-Id: Id885d00612a9efdca7ad8a8d26288efbeebf0da2 Tracked-On: https://jira.ndg.intel.com/browse/MARVIN-799 Signed-off-by: Baixing Tan <baixingx.tan@intel.com> Reviewed-on: https://android.intel.com/415578 Reviewed-by: Korpershoek, MattijsX <mattijsx.korpershoek@intel.com> Reviewed-by: jenkins_ndg <jenkins_ndg@intel.com> Reviewed-by: Pujol, Benjamin <benjamin.pujol@intel.com> Reviewed-by: Akue, LoicX <loicx.akue@intel.com> Reviewed-by: Maalem, Saadi <saadi.maalem@intel.com> Reviewed-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
-rw-r--r--als/Android.mk3
-rw-r--r--als/InputEventReader.cpp2
-rw-r--r--tilt/Android.mk3
-rw-r--r--tilt/InputEventReader.cpp2
4 files changed, 4 insertions, 6 deletions
diff --git a/als/Android.mk b/als/Android.mk
index 04e64bb..a2cc63c 100644
--- a/als/Android.mk
+++ b/als/Android.mk
@@ -37,8 +37,7 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE_TAGS := optional
# TODO: remove LOG_NDEBUG=0 for production builds, keep it during integration
-LOCAL_CFLAGS := -DLOG_TAG=\"MvnSensors\" -DLOG_NDEBUG=0
-LOCAL_CFLAGS += -DINVENSENSE_COMPASS_CAL
+LOCAL_CFLAGS := -DLOG_TAG=\"LightSensor\"
ifeq ($(VERSION_JB),true)
LOCAL_CFLAGS += -DANDROID_JB
diff --git a/als/InputEventReader.cpp b/als/InputEventReader.cpp
index b747b6f..7efee2d 100644
--- a/als/InputEventReader.cpp
+++ b/als/InputEventReader.cpp
@@ -46,7 +46,7 @@ InputEventCircularReader::~InputEventCircularReader()
}
/* TODO: clear DEBUG flag on production builds, keep it during integration */
-#define INPUT_EVENT_DEBUG (1)
+#define INPUT_EVENT_DEBUG (0)
ssize_t InputEventCircularReader::fill(int fd)
{
FUNC_LOG;
diff --git a/tilt/Android.mk b/tilt/Android.mk
index 66eed52..8e6af2f 100644
--- a/tilt/Android.mk
+++ b/tilt/Android.mk
@@ -37,8 +37,7 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE_TAGS := optional
# TODO: remove LOG_NDEBUG=0 for production builds, keep it during integration
-LOCAL_CFLAGS := -DLOG_TAG=\"MvnSensors\" -DLOG_NDEBUG=0
-LOCAL_CFLAGS += -DINVENSENSE_COMPASS_CAL
+LOCAL_CFLAGS := -DLOG_TAG=\"TiltSensor\"
ifeq ($(VERSION_JB),true)
LOCAL_CFLAGS += -DANDROID_JB
diff --git a/tilt/InputEventReader.cpp b/tilt/InputEventReader.cpp
index 6424501..f3590c7 100644
--- a/tilt/InputEventReader.cpp
+++ b/tilt/InputEventReader.cpp
@@ -46,7 +46,7 @@ InputEventCircularReader::~InputEventCircularReader()
}
/* TODO: clear DEBUG flag on production builds, keep it during integration */
-#define INPUT_EVENT_DEBUG (1)
+#define INPUT_EVENT_DEBUG (0)
ssize_t InputEventCircularReader::fill(int fd)
{
FUNC_LOG;