From 2b64984c0641d7a709edcb08ff15bb763712e377 Mon Sep 17 00:00:00 2001 From: "kibak.yoon" Date: Thu, 24 Mar 2016 21:04:49 +0900 Subject: [PATCH] sensord: remove the unnecessary debug log - a client can have serveral handles(it is same as listener) and each of handles can register each other sensor event. so there are so many cases that some event is not registered to handle. - so it is unnecessary to show dlog. Change-Id: Ib97a269e9368964baef84505895bd05ace2fde73 Signed-off-by: kibak.yoon --- src/client/sensor_handle_info.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/client/sensor_handle_info.cpp b/src/client/sensor_handle_info.cpp index 10cd629..f24b74a 100644 --- a/src/client/sensor_handle_info.cpp +++ b/src/client/sensor_handle_info.cpp @@ -47,10 +47,8 @@ reg_event_info* sensor_handle_info::get_reg_event_info(unsigned int event_type) { auto it_event = m_reg_event_infos.find(event_type); - if (it_event == m_reg_event_infos.end()) { - _D("Event %s[0x%x] is not registered for client %s", get_event_name(event_type), event_type, get_client_name()); + if (it_event == m_reg_event_infos.end()) return NULL; - } return &(it_event->second); } -- 2.7.4