From 3a6a66c1b73bb6d57c60e6b9767bf5d893811116 Mon Sep 17 00:00:00 2001 From: Shawn Lee Date: Mon, 5 Aug 2013 20:21:45 +0900 Subject: [PATCH] Added the DLOG message for rotation event. Change-Id: Ic76270ff776f79f3522721811e243739e7b42176 --- devicemgr/configure.ac | 2 +- devicemgr/src/sf_rotation_devicemgr.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/devicemgr/configure.ac b/devicemgr/configure.ac index a0f463a..c1a6036 100755 --- a/devicemgr/configure.ac +++ b/devicemgr/configure.ac @@ -62,7 +62,7 @@ dnl ======================================================================== # checks for pkg-config dnl ======================================================================== #PKG_CHECK_MODULES(ENLIGHTENMENT, [enlightenment, gestureproto, xgesture]) -PKG_CHECK_MODULES(ENLIGHTENMENT, [enlightenment, sensor, vconf]) +PKG_CHECK_MODULES(ENLIGHTENMENT, [enlightenment, sensor, vconf, dlog]) ENLIGHTENMENT_CFLAGS="${ENLIGHTENMENT_CFLAGS} " AC_SUBST(ENLIGHTENMENT_CFLAGS) AC_SUBST(ENLIGHTENMENT_LIBS) diff --git a/devicemgr/src/sf_rotation_devicemgr.c b/devicemgr/src/sf_rotation_devicemgr.c index fb82f91..c7ea3ff 100755 --- a/devicemgr/src/sf_rotation_devicemgr.c +++ b/devicemgr/src/sf_rotation_devicemgr.c @@ -30,6 +30,12 @@ #include "e_devicemgr_privates.h" #include "sf_rotation_devicemgr.h" +#ifdef USE_DLOG +#include "dlog.h" +#undef LOG_TAG +#define LOG_TAG "E17_EXTRA_MODULES" +#endif + typedef struct _E_DM_Sensor_Rotation E_DM_Sensor_Rotation; struct _E_DM_Sensor_Rotation @@ -303,6 +309,9 @@ _sensor_rotation_changed_cb(unsigned int event_type, ang = _ang_get(state); +#ifdef USE_DLOG + SECURE_SLOGD("[ROTATION] SENSOR ROT_CHANGE, state:%d angle:%d", state, ang); +#endif ELBF(ELBT_ROT, 0, 0, "ROT_EV state:%d angle:%d", state, ang); if (ang != -1) -- 2.7.4