# Report descriptor is printed partially

- From: Andrea G. Monaco \<hidden\>
- Date: 2021-06-07 15:03:52 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2021/06/8933110
- Thread: https://ratatoskr.run/linux-input/2021/06/8933110/t.md

```text

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
```
