diff options
-rw-r--r-- | goodix_brl_spi.c | 2 | ||||
-rw-r--r-- | goodix_ts_core.c | 2 | ||||
-rw-r--r-- | 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); \ } /* |