On 2/11/22 03:17, Adrian Hunter wrote:
Kernel messages produced during runtime PM can cause a never-ending cycle because user space utilities (e.g. journald or rsyslog) write the messages back to storage, causing runtime resume, more messages, and so on. Messages that tell of things that are expected to happen, are arguably unnecessary, so suppress them.
Instead of making the logging statements conditional, how about removing the logging statements entirely? That would simplify the code. I don't think the logging statements provide more information than what can already be obtained with ftrace.
Thanks, Bart.