summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-06-23 13:26:44 -0400
committerChris Michael <cp.michael@samsung.com>2015-06-23 13:27:28 -0400
commite399e9df4a7c885b3e502bc3fb8ae5cb7d1d7351 (patch)
treebc797bd62c06ce97962564bc8ce5b92b3d275a48 /src/lib/ecore_drm
parent71a8b9d119a84dec621010e2397ad546d559b298 (diff)
ecore-drm: Quiet down output from libinput
Summary: As libinput has matured enough now, we can reduce the noise in outputs logs by adjusting libinput log level priority @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm')
-rw-r--r--src/lib/ecore_drm/ecore_drm_inputs.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_inputs.c b/src/lib/ecore_drm/ecore_drm_inputs.c
index 7429e28a65..75655ec1db 100644
--- a/src/lib/ecore_drm/ecore_drm_inputs.c
+++ b/src/lib/ecore_drm/ecore_drm_inputs.c
@@ -214,7 +214,6 @@ EAPI Eina_Bool
214ecore_drm_inputs_create(Ecore_Drm_Device *dev) 214ecore_drm_inputs_create(Ecore_Drm_Device *dev)
215{ 215{
216 Ecore_Drm_Input *input; 216 Ecore_Drm_Input *input;
217 int level, priority = LIBINPUT_LOG_PRIORITY_ERROR;
218 217
219 /* check for valid device */ 218 /* check for valid device */
220 EINA_SAFETY_ON_NULL_RETURN_VAL(dev, EINA_FALSE); 219 EINA_SAFETY_ON_NULL_RETURN_VAL(dev, EINA_FALSE);
@@ -235,27 +234,8 @@ ecore_drm_inputs_create(Ecore_Drm_Device *dev)
235 goto err; 234 goto err;
236 } 235 }
237 236
238 /* get the current eina_log level */
239 level = eina_log_domain_registered_level_get(_ecore_drm_log_dom);
240 switch (level)
241 {
242 case EINA_LOG_LEVEL_DBG:
243 priority = LIBINPUT_LOG_PRIORITY_DEBUG;
244 break;
245 case EINA_LOG_LEVEL_INFO:
246 priority = LIBINPUT_LOG_PRIORITY_INFO;
247 break;
248 case EINA_LOG_LEVEL_CRITICAL:
249 case EINA_LOG_LEVEL_ERR:
250 case EINA_LOG_LEVEL_WARN:
251 priority = LIBINPUT_LOG_PRIORITY_ERROR;
252 break;
253 default:
254 break;
255 }
256
257 /* set libinput log priority */ 237 /* set libinput log priority */
258 libinput_log_set_priority(input->libinput, priority); 238 libinput_log_set_priority(input->libinput, LIBINPUT_LOG_PRIORITY_INFO);
259 239
260 /* assign udev seat */ 240 /* assign udev seat */
261 if (libinput_udev_assign_seat(input->libinput, dev->seat) != 0) 241 if (libinput_udev_assign_seat(input->libinput, dev->seat) != 0)