n_hdlc: convert debuglevel use to pr_debug
authorJiri Slaby <jslaby@suse.cz>
Wed, 19 Feb 2020 08:40:57 +0000 (09:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2020 09:24:32 +0000 (10:24 +0100)
commitf3c2e27750ea42b3cec96e5264d95c2a2b793156
treeee989a27cf0eeddbc180ffa0c92be3808197ac2d
parent683efabc66225ace701f726316ad0ba2ccd924fb
n_hdlc: convert debuglevel use to pr_debug

With pr_debug we have a fine-grained control about debugging prints. So
convert the use of global debuglevel variable and tests to a commonly
used pr_debug. And drop debuglevel completely.

This also implicitly adds a loglevel to the messages (KERN_DEBUG) as it
was missing on most of them.

And also use __func__ instead of function names explicitly typed.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200219084118.26491-3-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_hdlc.c