bufmgr: get the clients's app_name when the process is the root.
[platform/core/uifw/libtbm.git] / src / tbm_sync.c
index feab1ee..e126a36 100644 (file)
@@ -31,6 +31,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 **************************************************************************/
 
+#include "config.h"
+
 #include "tbm_bufmgr_int.h"
 #include "tbm_sync.h"
 
@@ -68,6 +70,7 @@ struct sync_merge_data {
 
 #define ERRNO_BUF_SIZE 256
 
+/* LCOV_EXCL_START */
 static inline void
 _log_errno()
 {
@@ -75,10 +78,13 @@ _log_errno()
        int             errnum = errno;
        char    buf[ERRNO_BUF_SIZE];
 
-       if (strerror_r(errnum, buf, ERRNO_BUF_SIZE) == 0)
-               TBM_LOG_E("errno : %d(%s)\n", errnum, buf);
-       else
-               TBM_LOG_E("errno : %d()\n", errnum);
+       if (strerror_r(errnum, buf, ERRNO_BUF_SIZE) == 0) {
+               TBM_ERR("errno : %d(%s)\n", errnum, buf);
+               return;
+       } else {
+               TBM_ERR("errno : %d()\n", errnum);
+               return;
+       }
 }
 
 static inline void
@@ -177,3 +183,4 @@ tbm_sync_fence_merge(const char *name, tbm_fd fence1, tbm_fd fence2)
 
        return data.fence;
 }
+/* LCOV_EXCL_STOP */