Sync code with Tizen 3.0 branch
[platform/core/connectivity/mtp-responder.git] / include / util / mtp_thread.h
index 41c4cfe..f742158 100755 (executable)
@@ -28,15 +28,15 @@ typedef void *(*thread_func_t) (void *pArg);
                int lock_ret = 0;\
                DBG("Thread [%d] trying to lock the Mutex \n", syscall(__NR_gettid));\
                lock_ret = pthread_mutex_lock(mut);\
-               if(lock_ret != 0) {\
-                       if(lock_ret == EDEADLK) {\
+               if (lock_ret != 0) {\
+                       if (lock_ret == EDEADLK) {\
                                DBG("Mutex is already locked by the same thread");\
                        } else {\
                                ERR("Error locking mutex. Error = %d \n", lock_ret);\
-                       }\
+                       } \
                } else {\
                        DBG("Mutex locked by thread [%d] \n", syscall(__NR_gettid));\
-               }\
+               } \
        } while (0);\
 
 
@@ -48,7 +48,7 @@ typedef void *(*thread_func_t) (void *pArg);
                        ERR("Error unlocking mutex. Error = %d \n", unlock_ret);\
                } else {\
                        DBG("Mutex unlocked by thread [%d] \n", syscall(__NR_gettid));\
-               }\
+               } \
        } while (0);\
 
 mtp_bool _util_thread_create(pthread_t *tid, const mtp_char *tname,