n_tty: check printk arguments for n_tty_trace
authorJiri Slaby <jslaby@suse.cz>
Thu, 30 Jan 2020 11:58:43 +0000 (12:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Feb 2020 20:34:43 +0000 (12:34 -0800)
commita287885f1e378bff5f58cee6d0fd16b886c4863b
treec2e89f91337bef0087bf181e71f92c69d91abe78
parent8e217b078138b6dadcef3080a5450ecd6767d09f
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>
drivers/tty/n_tty.c