This commit fixes the "Prefer [subsystem eg: netdev]_dbg([subsystem] dev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG" checkpath warning. Signed-off-by: Konrad Zapalowicz <bergo.torino@xxxxxxxxx> --- drivers/platform/x86/thinkpad_acpi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index eba72e7..8631981 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -389,7 +389,7 @@ static bool tpacpi_uwb_emulstate; #define dbg_printk(a_dbg_level, format, arg...) \ do { \ if (dbg_level & (a_dbg_level)) \ - printk(KERN_DEBUG pr_fmt("%s: " format), \ + pr_debug(pr_fmt("%s: " format), \ __func__, ##arg); \ } while (0) @@ -404,7 +404,7 @@ static inline const char *str_supported(int is_supported) { return ""; } static void tpacpi_log_usertask(const char * const what) { - printk(KERN_DEBUG pr_fmt("%s: access by process with PID %d\n"), + pr_debug(pr_fmt("%s: access by process with PID %d\n"), what, task_tgid_vnr(current)); } @@ -412,7 +412,7 @@ static void tpacpi_log_usertask(const char * const what) do { \ if (unlikely((dbg_level & TPACPI_DBG_DISCLOSETASK) && \ (tpacpi_lifecycle == TPACPI_LIFE_RUNNING))) { \ - printk(KERN_DEBUG pr_fmt("%s: PID %d: " format), \ + pr_debug(pr_fmt("%s: PID %d: " format), \ what, task_tgid_vnr(current), ## arg); \ } \ } while (0) -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html