include config.h in all c file and fixed dlog level 02/92002/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 12 Oct 2016 13:14:51 +0000 (22:14 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 12 Oct 2016 13:22:20 +0000 (22:22 +0900)
Change-Id: I38fcd99e965afc36ede781b6a6250e8197673221

src/tbm_bufmgr.c
src/tbm_bufmgr_int.h
src/tbm_drm_helper_client.c
src/tbm_drm_helper_server.c
src/tbm_surface.c
src/tbm_surface_internal.c
src/tbm_surface_queue.c
src/tbm_sync.c

index b27b6d3..c9633c9 100644 (file)
@@ -681,7 +681,7 @@ tbm_bufmgr_init(int fd)
 
 #ifdef TBM_BUFMGR_INIT_TIME
        /* get the end tv */
-       gettimeofday(&end_tv, NULL);
+       gettimeofday(&end_tv, NULL);
        TBM_LOG_I("tbm_bufmgr_init time: %ld ms", ((end_tv.tv_sec * 1000 + end_tv.tv_usec / 1000) - (start_tv.tv_sec * 1000 + start_tv.tv_usec / 1000)));
 #endif
 
index 94b7019..364ffd1 100644 (file)
@@ -93,7 +93,7 @@ extern int bDlog;
 
 #define TBM_LOG_I(fmt, ...) {\
        if (bDlog) {\
-               LOGD("[TBM:I] " fmt, ##__VA_ARGS__);\
+               LOGI("[TBM:I] " fmt, ##__VA_ARGS__);\
        } \
        else {\
                fprintf(stderr, "[TBM:I(%d)(%s:%d)] " fmt, getpid(), __func__, __LINE__, ##__VA_ARGS__);\
index ac86115..172a7a9 100644 (file)
@@ -31,6 +31,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 #define WL_HIDE_DEPRECATED
 
+#include "config.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 568f0e9..b10f88a 100644 (file)
@@ -31,13 +31,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 #define WL_HIDE_DEPRECATED
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stddef.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <errno.h>
+#include "config.h"
 
 #include <xf86drm.h>
 
index 1277c80..a05ae06 100644 (file)
@@ -30,6 +30,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 **************************************************************************/
 
 #include "config.h"
+
 #include "tbm_bufmgr.h"
 #include "tbm_bufmgr_int.h"
 #include "tbm_surface_internal.h"
index 6a086f8..71dd8aa 100644 (file)
@@ -30,6 +30,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 **************************************************************************/
 
 #include "config.h"
+
 #include <stdio.h>
 #include <time.h>
 #include <sys/time.h>
index 51fcfc0..9cafcaf 100644 (file)
@@ -29,6 +29,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 **************************************************************************/
 
+#include "config.h"
+
 #include "tbm_bufmgr_int.h"
 #include "list.h"
 
index feab1ee..9ebca2e 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"
 
@@ -75,10 +77,13 @@ _log_errno()
        int             errnum = errno;
        char    buf[ERRNO_BUF_SIZE];
 
-       if (strerror_r(errnum, buf, ERRNO_BUF_SIZE) == 0)
+       if (strerror_r(errnum, buf, ERRNO_BUF_SIZE) == 0) {
                TBM_LOG_E("errno : %d(%s)\n", errnum, buf);
-       else
+               return;
+       } else {
                TBM_LOG_E("errno : %d()\n", errnum);
+               return;
+       }
 }
 
 static inline void