summaryrefslogtreecommitdiff
path: root/goodix_ts_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'goodix_ts_core.h')
-rw-r--r--goodix_ts_core.h11
1 files changed, 5 insertions, 6 deletions
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); \
}
/*