All of lore.kernel.org
 help / color / mirror / Atom feed
* Report descriptor is printed partially
@ 2021-06-07 14:56 Andrea G. Monaco
  0 siblings, 0 replies; only message in thread
From: Andrea G. Monaco @ 2021-06-07 14:56 UTC (permalink / raw)
  To: linux-input


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-07 15:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-07 14:56 Report descriptor is printed partially Andrea G. Monaco

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.