]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit089de42630d507a6cf14cb0683003d9fd14ee45d
treec2e89f91337bef0087bf181e71f92c69d91abe78
parent8ef73c6bfc9cb3a2915e32a4e826e238ce434d96
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