diff options
-rw-r--r-- | syna_tcm2.c | 3 | ||||
-rw-r--r-- | syna_tcm2_runtime.h | 18 |
2 files changed, 9 insertions, 12 deletions
diff --git a/syna_tcm2.c b/syna_tcm2.c index a594bac..a371710 100644 --- a/syna_tcm2.c +++ b/syna_tcm2.c @@ -3275,7 +3275,8 @@ static int syna_dev_probe(struct platform_device *pdev) (void *)tcm); #endif - LOGI("%s TouchComm driver v%d.%s installed\n", + LOGI("%s: %s TouchComm driver v%d.%s installed\n", + __func__, PLATFORM_DRIVER_NAME, SYNAPTICS_TCM_DRIVER_VERSION, SYNAPTICS_TCM_DRIVER_SUBVER); diff --git a/syna_tcm2_runtime.h b/syna_tcm2_runtime.h index e26a162..002de04 100644 --- a/syna_tcm2_runtime.h +++ b/syna_tcm2_runtime.h @@ -103,17 +103,13 @@ extern struct device *syna_request_managed_device(void); * @brief: LOGE * Output the error message */ -#define LOGD(log, ...) \ - pr_debug("[ debug] %s: " log, __func__, ##__VA_ARGS__) -#define LOGI(log, ...) \ - pr_info("[ info] %s: " log, __func__, ##__VA_ARGS__) -#define LOGN(log, ...) \ - pr_notice("[ info] %s: " log, __func__, ##__VA_ARGS__) -#define LOGW(log, ...) \ - pr_warn("[warning] %s: " log, __func__, ##__VA_ARGS__) -#define LOGE(log, ...) \ - pr_err("[ error] %s: " log, __func__, ##__VA_ARGS__) - +#undef pr_fmt +#define pr_fmt(fmt) "gtd: syna: " fmt +#define LOGD(log, ...) pr_debug(log, ##__VA_ARGS__) +#define LOGI(log, ...) pr_info(log, ##__VA_ARGS__) +#define LOGN(log, ...) pr_notice(log, ##__VA_ARGS__) +#define LOGW(log, ...) pr_warn(log, ##__VA_ARGS__) +#define LOGE(log, ...) pr_err(log, ##__VA_ARGS__) /** * @section: Error Codes returned |