coding-style: Add guidance to prefer dev_dbg
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Fri, 26 Jan 2024 00:53:11 +0000 (16:53 -0800)
committerJonathan Corbet <corbet@lwn.net>
Tue, 30 Jan 2024 21:03:33 +0000 (14:03 -0700)
commit5c7944ca7b13978744ec83e131aef9255fdbabbe
tree5cd7ad3e233bdf06f3ef19141213e4a26dfb718e
parent01ac725c3b692bc6b29ee7520ced8dbf9e9dcab8
coding-style: Add guidance to prefer dev_dbg

During review, it was suggested that drivers only emit messages when
something is wrong or it is a debug message. Document this as a formal
recommendation.

https://lore.kernel.org/linux-usb/2024012525-alienate-frown-916b@gregkh/

Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240125165311.1.I8d9c88e747e233917e527c7dad1feb8a18f070e2@changeid
Documentation/process/coding-style.rst