e_eom: use ELOGF in log macro
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 21 Jun 2023 08:36:47 +0000 (17:36 +0900)
committerJunseok Kim <juns.kim@samsung.com>
Thu, 29 Jun 2023 02:29:04 +0000 (11:29 +0900)
Change-Id: I0dda20390892aceaa77421a3efcfb95447c0f214

src/bin/e_eom.c

index 99342fe..5171cce 100644 (file)
@@ -20,29 +20,24 @@ static int eom_trace_debug = 0;
 #define EOM_CONNECT_CHECK_TIMEOUT 4.0
 #define EOM_DELAY_CONNECT_CHECK_TIMEOUT 1.0
 
-#define EOMERR(f, output, x...)                               \
-   do                                                            \
-     {                                                           \
-        if (!output)                                         \
-          ERR("EWL|%20.20s|            |             |%7s|"f,  \
-              "EOM", "Unknown", ##x);                            \
-        else                                                     \
-          ERR("EWL|%20.20s|            |             |%7s|"f,  \
-              "EOM", (e_output_output_id_get(output)), ##x);                   \
-     }                                                           \
+#define EOMERR(f, output, x...)                                \
+   do                                                          \
+     {                                                         \
+        if (!output)                                           \
+          ELOGFE("EOM", "%7s|"f,                               \
+                 NULL, "Unknown", ##x);                        \
+        else                                                   \
+          ELOGFE("EOM", "%7s|"f,                               \
+                 NULL, (e_output_output_id_get(output)), ##x); \
+     }                                                         \
    while (0)
 
-#define EOMINF(f, ec, output, x...)                               \
-   do                                                            \
-     {                                                           \
-        if (!ec)                                         \
-          INF("EWL|%20.20s|            |             |%7s|"f,  \
-              "EOM", (e_output_output_id_get(output)), ##x);                            \
-        else                                                     \
-          INF("EWL|%20.20s|w:0x%08zx|ec:%8p|%7s|"f,  \
-              "EOM", (e_client_util_win_get(ec)),                        \
-              (ec), (e_output_output_id_get(output)), ##x);                   \
-     }                                                           \
+#define EOMINF(f, ec, output, x...)                            \
+   do                                                          \
+     {                                                         \
+        ELOGF("EOM", "%7s|"f,                                  \
+              (ec), (e_output_output_id_get(output)), ##x);    \
+     }                                                         \
    while (0)
 
 typedef struct _E_Eom        E_Eom,       *E_EomPtr;