I'm trying to modify the libcomposite module in a way that it prints the functions of which are loaded to the log file.
I'm using an Raspberry Pi Zero W with the 4.9.20+ Kernel. I updated everything with the rpi-source then edited the
composite.c file in
drivers/usb/gadget folder to print with
And recompiled everything with
make modules SUBDIR=drivers/usb/gadget and the installed everything with
make modules_install SUBDIR=drivers/usb/gadget.
The libcomposite is loaded with
modprobe libcomposite in a
systemd service and then the functions are appended.
But the problem is that the messages of
printk(..) are neither shown in
dmesg nor any log files.
Thanks for your help!