Fix format string according clang warnings
authorNikolai Merinov <n.merinov@samsung.com>
Tue, 5 Feb 2019 15:52:12 +0000 (18:52 +0300)
committerNikolai Merinov <n.merinov@samsung.com>
Tue, 5 Feb 2019 16:00:05 +0000 (19:00 +0300)
include/tdm_log.h

index de56386..6561fbc 100644 (file)
@@ -80,7 +80,7 @@ extern unsigned int tdm_log_debug_level;
                if (tdm_log_debug_level >= TDM_LOG_LEVEL_DBG) { \
                        struct timespec ts; \
                        clock_gettime(CLOCK_MONOTONIC, &ts); \
-                       tdm_log_print(TDM_LOG_LEVEL_DBG, "[%5d.%06d][%d][%s %d]"fmt, \
+                       tdm_log_print(TDM_LOG_LEVEL_DBG, "[%5d.%06d][%d][%s %d]" fmt, \
                                                  (int)ts.tv_sec, (int)ts.tv_nsec / 1000, \
                                                  (int)syscall(SYS_gettid), __FUNCTION__, __LINE__, ##args);  \
                } \
@@ -90,7 +90,7 @@ extern unsigned int tdm_log_debug_level;
                if (tdm_log_debug_level >= TDM_LOG_LEVEL_INFO) { \
                        struct timespec ts; \
                        clock_gettime(CLOCK_MONOTONIC, &ts); \
-                       tdm_log_print(TDM_LOG_LEVEL_INFO, "[%5d.%06d][%d][%s %d]"fmt, \
+                       tdm_log_print(TDM_LOG_LEVEL_INFO, "[%5d.%06d][%d][%s %d]" fmt, \
                                                  (int)ts.tv_sec, (int)ts.tv_nsec / 1000, \
                                                  (int)syscall(SYS_gettid), __FUNCTION__, __LINE__, ##args);  \
                } \
@@ -100,7 +100,7 @@ extern unsigned int tdm_log_debug_level;
                if (tdm_log_debug_level >= TDM_LOG_LEVEL_WRN) { \
                        struct timespec ts; \
                        clock_gettime(CLOCK_MONOTONIC, &ts); \
-                       tdm_log_print(TDM_LOG_LEVEL_WRN, "[%5d.%06d][%d][%s %d]"fmt, \
+                       tdm_log_print(TDM_LOG_LEVEL_WRN, "[%5d.%06d][%d][%s %d]" fmt, \
                                                  (int)ts.tv_sec, (int)ts.tv_nsec / 1000, \
                                                  (int)syscall(SYS_gettid), __FUNCTION__, __LINE__, ##args);  \
                } \
@@ -110,7 +110,7 @@ extern unsigned int tdm_log_debug_level;
                if (tdm_log_debug_level >= TDM_LOG_LEVEL_ERR) { \
                        struct timespec ts; \
                        clock_gettime(CLOCK_MONOTONIC, &ts); \
-                       tdm_log_print(TDM_LOG_LEVEL_ERR, "[%5d.%06d][%d][%s %d]"fmt, \
+                       tdm_log_print(TDM_LOG_LEVEL_ERR, "[%5d.%06d][%d][%s %d]" fmt, \
                                                  (int)ts.tv_sec, (int)ts.tv_nsec / 1000, \
                                                  (int)syscall(SYS_gettid), __FUNCTION__, __LINE__, ##args);  \
                } \