From: Joonbum Ko Date: Thu, 27 Jun 2024 01:01:37 +0000 (+0900) Subject: wayland-egl-tizen: change info log to use tag prefix X-Git-Tag: accepted/tizen/unified/20240701.055759~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F313509%2F1;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git wayland-egl-tizen: change info log to use tag prefix Change-Id: Ia4267ae1543dc52c2b5b3c5116f9eaf22dc95cb2 Signed-off-by: Joonbum Ko --- diff --git a/configure.ac b/configure.ac index 87ba9d3..3790565 100644 --- a/configure.ac +++ b/configure.ac @@ -59,7 +59,7 @@ AC_ARG_WITH([wayland], AS_IF([test "${with_wayland}" = "yes" || test "${with_wayland}" = "1"], [PKG_CHECK_MODULES([TPL_WL], [libtdm-client wayland-tbm-client wayland-tbm-server - glib-2.0 wayland-egl wayland-egl-backend]) + glib-2.0 wayland-egl wayland-egl-backend wayland-egl-tizen]) TPL_CFLAGS+="$TPL_WL_CFLAGS" TPL_CFLAGS+=" -DTPL_WINSYS_WL=1 " TPL_LIBS+=" $TPL_WL_LIBS "], @@ -100,6 +100,7 @@ AS_IF([test "${enable_dlog}" = "yes" || test "${enable_dlog}" = "1"], TPL_CFLAGS+=" -DDLOG_DEFAULT_ENABLE " TPL_LIBS+=" $DLOG_LIBS" WL_EGL_TIZEN_CFLAGS+="$DLOG_CFLAGS" + WL_EGL_TIZEN_CFLAGS+=" -DDLOG_DEFAULT_ENABLE " WL_EGL_TIZEN_LIBS+=" $DLOG_LIBS"], []) @@ -111,7 +112,8 @@ AC_ARG_ENABLE([dlog-default], []) AS_IF([test "${enable_dlog_default}" = "yes" || test "${enable_dlog_default}" = "1"], - [TPL_CFLAGS+=" -DLOG_DEFAULT_ENABLE "], + [TPL_CFLAGS+=" -DLOG_DEFAULT_ENABLE " + WL_EGL_TIZEN_CFLAGS+=" -DDLOG_DEFAULT_ENABLE "], []) AM_CONDITIONAL([ENABLE_DLOG_DEFAULT], [test "${enable_dlog_default}" = "yes" || test "${enable_dlog_default}" = "1"]) @@ -191,10 +193,8 @@ AC_ARG_ENABLE([gcov], AS_IF([test "${enable_gcov}" = "yes" || test "${enable_gcov}" = "1"], [TPL_CFLAGS+=" -fprofile-arcs -ftest-coverage" TPL_LIBS+=" -lgcov " - WL_EGL_CFLAGS+=" -fprofile-arcs -ftest-coverage" - WL_EGL_LIBS+=" -lgcov " WL_EGL_TIZEN_CFLAGS+=" -fprofile-arcs -ftest-coverage" - WL_EGL_TIZENLIBS+=" -lgcov ", + WL_EGL_TIZEN_LIBS+=" -lgcov ", ]) AM_CONDITIONAL([ENABLE_GCOV], [test "${enable_gcov}" = "yes" || test "${enable_gcov}" = "1"]) @@ -205,9 +205,6 @@ TPL_LIBS+=" $TPL_ESSENTIAL_LIBS" AC_SUBST([TPL_CFLAGS]) AC_SUBST([TPL_LIBS]) -AC_SUBST([WL_EGL_CFLAGS]) -AC_SUBST([WL_EGL_LIBS]) - AC_SUBST([WL_EGL_TIZEN_CFLAGS]) AC_SUBST([WL_EGL_TIZEN_LIBS]) diff --git a/src/wayland-egl-tizen/wayland-egl-tizen.c b/src/wayland-egl-tizen/wayland-egl-tizen.c index 1a43fec..966ef7d 100644 --- a/src/wayland-egl-tizen/wayland-egl-tizen.c +++ b/src/wayland-egl-tizen/wayland-egl-tizen.c @@ -34,9 +34,9 @@ syscall(SYS_gettid), __func__, ##x) #endif /* DLOG_DEFAULT_ENABLE */ -#define WL_EGL_LOG(f, x...) wl_egl_log_i("[INFO]", f, ##x) -#define WL_EGL_ERR(f, x...) wl_egl_log_e("[ERROR]", f, ##x) -#define WL_EGL_WARN(f, x...) wl_egl_log_w("[WARN]", f, ##x) +#define WL_EGL_INFO(t, f, x...) wl_egl_log_i(t, f, ##x) +#define WL_EGL_ERR(f, x...) wl_egl_log_e("[ERROR]", f, ##x) +#define WL_EGL_WARN(f, x...) wl_egl_log_w("[WARN]", f, ##x) static int error_set = 0;