touch/goodix: Update logs tag
Bug: 242559052
Test: check logs on device
Change-Id: I55c460a02649ab2d88bc49eb041a88782f4313f1
Signed-off-by: Super Liu <supercjliu@google.com>
diff --git a/goodix_brl_spi.c b/goodix_brl_spi.c
index b7d82da..ac82ae3 100644
--- a/goodix_brl_spi.c
+++ b/goodix_brl_spi.c
@@ -324,7 +324,7 @@
{
int ret = 0;
- ts_info("goodix spi probe in");
+ ts_info("%s: goodix spi probe in", __func__);
/* init spi_device */
spi->mode = SPI_MODE_0;
diff --git a/goodix_ts_core.c b/goodix_ts_core.c
index 13ef6ff..1619c93 100644
--- a/goodix_ts_core.c
+++ b/goodix_ts_core.c
@@ -3310,7 +3310,7 @@
goto err_start_late_init;
}
- ts_info("goodix_ts_core probe success");
+ ts_info("%s: goodix_ts_core probe success", __func__);
return 0;
err_start_late_init:
diff --git a/goodix_ts_core.h b/goodix_ts_core.h
index 4da22cb..8318a70 100644
--- a/goodix_ts_core.h
+++ b/goodix_ts_core.h
@@ -869,15 +869,14 @@
/* log macro */
extern bool debug_log_flag;
-#define ts_info(fmt, arg...) \
- pr_info("[GTP-INF][%s:%d] " fmt "\n", __func__, __LINE__, ##arg)
-#define ts_err(fmt, arg...) \
- pr_err("[GTP-ERR][%s:%d] " fmt "\n", __func__, __LINE__, ##arg)
+#undef pr_fmt
+#define pr_fmt(fmt) "gtd: GTP: " fmt
+#define ts_info(fmt, arg...) pr_info(fmt, ##arg)
+#define ts_err(fmt, arg...) pr_err("%s: "fmt, __func__, ##arg)
#define ts_debug(fmt, arg...) \
{ \
if (debug_log_flag) \
- pr_info("[GTP-DBG][%s:%d] " fmt "\n", __func__, \
- __LINE__, ##arg); \
+ pr_info(fmt, ##arg); \
}
/*