]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6ac7e0980930859c0a3e3d819358df9487bac917
treeee989a27cf0eeddbc180ffa0c92be3808197ac2d
parent78b5257abfeccb8347b7734974b6099f6671330a
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