ttyprintk: Neaten and simplify printing
authorJoe Perches <joe@perches.com>
Tue, 6 Sep 2016 16:49:04 +0000 (09:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Sep 2016 15:30:17 +0000 (17:30 +0200)
commit0b3191d4ea6403f429beab5097428093e170fe44
treea0847fc1ecb2e941a5efd84ce0dda49a8a362ab1
parentac182e8abc6f93c1c4cc12f042af64c9d7be0d1e
ttyprintk: Neaten and simplify printing

The code is a bit obscure.

Simplify it by using a single routine to flush the tpk_buffer and
emit the buffer prefixed with "[U] ".

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/ttyprintk.c