Re: [PATCH 3/4] mailbox: mailbox-test: use print_hex_dump_bytes to allow dynamic printk
From: Sudeep Holla
Date: Fri Feb 12 2016 - 04:32:27 EST
On 12/02/16 09:12, Lee Jones wrote:
On Thu, 11 Feb 2016, Sudeep Holla wrote:
Reduce the logging from info to debug. Also use print_hex_dump_bytes
instead as it has support for dynamic printk providing options to
conditionally enable/disable these logs.
Printing out the data in this way is kinda the point of the driver.
But if you don't have a use for it, then I guess it's okay to
downgrade it to DEBUG, as turning debug on, or hacking the driver back
again are trivial actions.
Agreed, I wanted check the same by adding additional note but forgot.
Sorry for missing that.
One of the reasons I preferred this it's easy to switch it on or off via
debug level or dynamic debug. It's useful when the test application
using these sysfs also logs and ends up cluttered by kernel logs.
--
Regards,
Sudeep