Messages in show shown in dmesg are kernel debug messages (usually printk).
So you can use the grep command to find the exact line of code outputting this message (in /drivers/usb/gadget):
in inode.c you can see the write operation calls calls dev_config function
In my kernel, the particular line is:
Quote:
pr_debug ("%s: %s fail %Zd, %p\n", shortname, __FUNCTION__, value, dev);
|
So you can check the usage of value and dev in the dev_config to find out what may be the problem.