printed return value as log.
Change-Id: I5138e6eb1f821b93bf7ccda3ffdf076647f5384e
Signed-off-by: munkyu.im <munkyu.im@samsung.com>
void set_lock_state() {
int i = 0;
+ int ret = 0;
// Now we blocking to enter "SLEEP".
- while (i < PMAPI_RETRY_COUNT && pm_lock_state(LCD_OFF, STAY_CUR_STATE, 0) == -1) {
+ while(i < PMAPI_RETRY_COUNT ) {
+ ret = pm_lock_state(LCD_OFF, STAY_CUR_STATE, 0);
+ LOG("pm_lock_state() return: %d", ret);
+ if(ret == 0)
+ {
+ break;
+ }
++i;
sleep(10);
}
*
*/
-//#include "emuld.h"
+#include "emuld.h"
#include "emuld_common.h"
#include <vconf/vconf.h>
#include <vconf/vconf-keys.h>