logs which are showing is related to usb data transfer and logs are enabled in the function “usb_stor_dbg”(drivers/usb/storage/debug.c).Try to disable the usb_stor_dbg function We can disable by menuconfig in yocto and check.
steps:
source ./poky/oe-init-build-env build_bin/
bitbake linux-yocto -c menuconfig
search “CONFIG_USB_STORAGE_DEBUG”
disable “USB Mass Storage verbose debug”
This has to remove debug message related to storage operations as mentioned.
In my application there are a couple of issues with that though:
I’ve got an app (in C) that opens a pipe to logread and then writes the contents to a rotating set of text files on the USB storage device. So I have a bit of a circular problem where the act of logging is generating more log info.
I’ll have a look to see if I can insert the grep into the pipe setup that I’m using in C.
The other issue is that the Busybox provided ash shell implements pipes with a 1k block buffer. This means that the input to the pipe is not passed on to the output of the pipe untile either (a) the buffer is filled; ot (b) the write end (input) is closed. So if there’s not a lot of data then the output from the grep can be significantly delayed in time.
I’ve been bitten by this before when trying to do scripting work in busybox based systems.
I guess I can look at modifying my C app to parse each line of text and strip out the data I don’t need. That’s effectively what you are suggesting using grep - just have to look at a way of doing that efficiently. Something else to learn!
HI @davidc,
I understand your point, and will raise a discussion internally;
anyway, by following the proposal from Manukumar, you should be able to solved your issue;
Best Regards,