From 2efc088f6730e83d72aaf05dd6ff254cc9d83525 Mon Sep 17 00:00:00 2001 From: Super Liu Date: Tue, 5 Sep 2023 02:35:56 +0000 Subject: touch/goodix: Update logs tag Bug: 242559052 Test: check logs on device Change-Id: I55c460a02649ab2d88bc49eb041a88782f4313f1 Signed-off-by: Super Liu --- goodix_brl_spi.c | 2 +- goodix_ts_core.c | 2 +- goodix_ts_core.h | 11 +++++------ 3 files changed, 7 insertions(+), 8 deletions(-) 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 @@ static int goodix_spi_probe(struct spi_device *spi) { 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 @@ static int goodix_ts_probe(struct platform_device *pdev) 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 @@ struct goodix_ext_attribute { /* 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); \ } /* -- cgit v1.2.3