Skip to contentSkip to conversation

Report descriptor is printed partially

DISCUSSION Andrea G. Monaco 1 participant 1 message Jun 7, 2021 HID

lore
Share & tools
lore
#0 lore raw

Hello everyone,

while investigating a problem with my touchpad in i2c_hid, I found out that the %*ph specifier in printk only prints 64 bytes at most
(https://www.kernel.org/doc/html/latest/core-api/printk-formats.html).
That means the line

	i2c_hid_dbg(ihid, "Report Descriptor: %*ph\n", rsize, rdesc);

in i2c_parse only prints the beginning of the report descriptor. My touchpad declares a 665 bytes long descriptor, so I guess it is usually much bigger than 64.

Perhaps we could dump the full descriptor, or at least make this limit clear.

Andrea Monaco