aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/n_tty.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2020-01-30 12:58:43 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-10 12:34:43 -0800
commita287885f1e378bff5f58cee6d0fd16b886c4863b (patch)
treec2e89f91337bef0087bf181e71f92c69d91abe78 /drivers/tty/n_tty.c
parentkgdboc: Use for_each_console() helper (diff)
downloadlinux-dev-a287885f1e378bff5f58cee6d0fd16b886c4863b.tar.xz
linux-dev-a287885f1e378bff5f58cee6d0fd16b886c4863b.zip
n_tty: check printk arguments for n_tty_trace
When N_TTY_TRACE is undefined (the default), define n_tty_trace to use no_printk. That way, arguments are still checked during compilation. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20200130115843.7452-1-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/n_tty.c')
-rw-r--r--drivers/tty/n_tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c
index f9c584244f72..640fdd1e4c1d 100644
--- a/drivers/tty/n_tty.c
+++ b/drivers/tty/n_tty.c
@@ -84,7 +84,7 @@
#ifdef N_TTY_TRACE
# define n_tty_trace(f, args...) trace_printk(f, ##args)
#else
-# define n_tty_trace(f, args...)
+# define n_tty_trace(f, args...) no_printk(f, ##args)
#endif
struct n_tty_data {