linux/drivers/input/joystick
Tim Schumacher 305180bc05 Input: iforce - reformat the packet dump output
Previously, packets that have been dumped are shown in the
kernel log like this:

drivers/input/joystick/iforce/iforce-packets.c: info cmd = ff04, data =
56
02
04
00

Use dev_dbg to dump the packages only when requested and to list
the parent device as well. Use printf logic to generate the hexdump
instead of looping through every char that needs to be printed (which
in turn fixes the unnecessary newlines and looks more clean in general).

The resulting package dump output does now look like this:

usb 2-8: iforce_dump_packet info cmd = ff04, data = 56 02 04 00

Signed-off-by: Tim Schumacher <timschumi@gmx.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2018-07-26 17:04:46 -07:00
..
iforce Input: iforce - reformat the packet dump output 2018-07-26 17:04:46 -07:00
a3d.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
adi.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
amijoy.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
analog.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
as5011.c Input: as5011 - avoid using __set_bit() for capabilities 2018-05-08 15:36:02 -07:00
cobra.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
db9.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
gamecon.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
gf2k.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
grip_mp.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
grip.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
guillemot.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
interact.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
joydump.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
Kconfig Input: pxrc - new driver for PhoenixRC Flight Controller Adapter 2018-03-26 15:22:20 -07:00
magellan.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
Makefile Input: pxrc - new driver for PhoenixRC Flight Controller Adapter 2018-03-26 15:22:20 -07:00
maplecontrol.c Input: maplecontrol - drop unnecessary call to input_set_drvdata 2017-01-22 17:22:27 -08:00
psxpad-spi.c Input: add support for PlayStation 1/2 joypads connected via SPI 2017-05-10 14:35:48 -07:00
pxrc.c Input: pxrc - flatten probe code 2018-07-25 19:04:19 +00:00
sidewinder.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
spaceball.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
spaceorb.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
stinger.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
tmdc.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
turbografx.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
twidjoy.c Input: twidjoy - constify serio_device_id 2017-08-18 17:14:15 -07:00
walkera0701.c ktime: Cleanup ktime_set() usage 2016-12-25 17:21:22 +01:00
warrior.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
xpad.c Input: xpad - add GPD Win 2 Controller USB IDs 2018-06-04 13:31:22 -07:00
zhenhua.c Input: zhenhua - constify serio_device_id 2017-08-18 17:14:17 -07:00