libinput: use ds_log_error() which calls 'strerror_r' 38/281438/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_7.0 tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.063730 accepted/tizen/7.0/unified/hotfix/20221116.110118 accepted/tizen/unified/20220921.091751 tizen_7.0_m2_release
authorduna.oh <duna.oh@samsung.com>
Mon, 19 Sep 2022 02:33:35 +0000 (11:33 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 19 Sep 2022 04:44:29 +0000 (13:44 +0900)
strerror makes no guarantee of thread safety.
It'd better use strerror_r function instead.

Change-Id: I8fe56323b0f81343e7d8082146724a7223cbdebf

src/backend/libinput/backend.c

index 7a7ed02..22c07e0 100644 (file)
@@ -111,7 +111,7 @@ handle_libinput_readable(int fd, uint32_t mask, void *_backend)
 
     ret = libinput_dispatch(backend->libinput_context);
     if (ret != 0) {
-        ds_log(DS_ERR, "Failed to dispatch libinput: %s", strerror(-ret));
+        ds_log_errno(DS_ERR, "Failed to dispatch libinput");
         wl_display_terminate(backend->display);
         return 0;
     }