#ifdef LOG_TAG
#undef LOG_TAG
#endif
-#define LOG_TAG "MM_WFD_COMMON"
+#define LOG_TAG "MM_SCMIRRORING_COMMON"
+
+#define FONT_COLOR_RESET "\033[0m"
+#define FONT_COLOR_RED "\033[31m"
+#define FONT_COLOR_GREEN "\033[32m"
+#define FONT_COLOR_YELLOW "\033[33m"
+#define FONT_COLOR_BLUE "\033[34m"
+#define FONT_COLOR_PURPLE "\033[35m"
+#define FONT_COLOR_CYAN "\033[36m"
+#define FONT_COLOR_GRAY "\033[37m"
#define wfd_debug(fmt, arg...) do { \
- LOGD(""fmt"", ##arg); \
+ LOGD(FONT_COLOR_RESET""fmt"", ##arg); \
} while (0)
#define wfd_info(fmt, arg...) do { \
- LOGI(""fmt"", ##arg); \
+ LOGI(FONT_COLOR_GREEN""fmt""FONT_COLOR_RESET, ##arg); \
} while (0)
#define wfd_error(fmt, arg...) do { \
- LOGE(""fmt"", ##arg); \
+ LOGE(FONT_COLOR_RED""fmt""FONT_COLOR_RESET, ##arg); \
} while (0)
#define wfd_warning(fmt, arg...) do { \
- LOGW(""fmt"", ##arg); \
+ LOGW(FONT_COLOR_YELLOW""fmt""FONT_COLOR_RESET, ##arg); \
} while (0)
#define wfd_debug_fenter() do { \
- LOGD("<Enter>"); \
+ LOGD(FONT_COLOR_RESET"<Enter>"); \
} while (0)
#define wfd_debug_fleave() do { \
- LOGD("<Leave>"); \
+ LOGD(FONT_COLOR_RESET"<Leave>"); \
} while (0)
#define wfd_error_fenter() do { \
- LOGE("NO-ERROR : <Enter>"); \
+ LOGE(FONT_COLOR_RESET"NO-ERROR : <Enter>"); \
} while (0)
#define wfd_error_fleave() do { \
- LOGE("NO-ERROR : <Leave>"); \
+ LOGE(FONT_COLOR_RESET"NO-ERROR : <Leave>"); \
} while (0)
#define wfd_sucure_info(fmt, arg...) do { \
- SECURE_LOGI(""fmt"", ##arg); \
+ SECURE_LOGI(FONT_COLOR_GREEN""fmt""FONT_COLOR_RESET, ##arg); \
} while (0)
#ifdef __cplusplus