fix the log format 07/263807/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 10 Sep 2021 04:58:43 +0000 (13:58 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 10 Sep 2021 06:43:44 +0000 (15:43 +0900)
Change-Id: I2e1ad3d1272e6af061f105704a544e761ce008e8

src/lib/pepper/pepper-utils.h

index 1b5ecae..8026112 100644 (file)
@@ -329,13 +329,14 @@ pepper_log_dlog_enable(pepper_bool_t enabled);
 
 #define PEPPER_ERROR(fmt, ...)                                                          \
     do {                                                                                \
-        pepper_log("ERROR", PEPPER_LOG_LEVEL_ERROR, "%s:%s: " fmt,                      \
+        pepper_log("ERROR", PEPPER_LOG_LEVEL_ERROR, "%s[%s]: " fmt,                      \
                    __FILE__, __FUNCTION__, ##__VA_ARGS__);                              \
     } while (0)
 
 #define PEPPER_TRACE(fmt, ...)                                                          \
     do {                                                                                \
-        pepper_log("DEBUG", PEPPER_LOG_LEVEL_DEBUG, fmt, ##__VA_ARGS__);                \
+        pepper_log("DEBUG", PEPPER_LOG_LEVEL_DEBUG, "%s[%s]: " fmt,                      \
+                   __FILE__, __FUNCTION__, ##__VA_ARGS__);                              \
     } while (0)
 
 #define PEPPER_CHECK(exp, action, fmt, ...)                                             \