Input: libps2 - add debugging statements
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 2 Jan 2018 20:21:49 +0000 (12:21 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 3 Feb 2018 00:50:25 +0000 (16:50 -0800)
commit147b903da65daedc90dbeb66a75dd608a6a41ef2
tree99fac314945fbc3c61ed86f305b73990f2a90c06
parent08be954b7a7de6742d3d47e4dc20e3b086410761
Input: libps2 - add debugging statements

Debugging via i8042.debug and analyzing raw PS/2 data stream may be
cumbersome as you need to locate the boundaries of commands, decipher the
sliced commands, etc, etc. Let's add a bit more high level debug statements
for ps2_sendbyte(), ps2_command(), and ps2_sliced_command().

We do not introduce a new module parameter, but rater rely on the kernel
having dynamic debug facility enabled (which most everyone has nowadays).
Enable with:

echo "file libps2.c +pf" > /sys/kernel/debug/dynamic_debug/control

or add "libps2.dyndbg=+pf" to the kernel command line.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/libps2.c