Commit c04639a7 authored by Trevor Woerner's avatar Trevor Woerner Committed by Jonathan Corbet

coding-style.rst: trivial: fix location of driver model macros

The dev_printk()-like functions moved to include/linux/dev_print.h in
commit af628aae ("device.h: move dev_printk()-like functions to
dev_printk.h").
Signed-off-by: default avatarTrevor Woerner <twoerner@gmail.com>
Reviewed-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Reviewed-by: default avatarMiguel Ojeda <ojeda@kernel.org>
Link: https://lore.kernel.org/r/20210423184012.39300-1-twoerner@gmail.comSigned-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 8c3b0188
...@@ -890,7 +890,7 @@ Kernel messages do not have to be terminated with a period. ...@@ -890,7 +890,7 @@ Kernel messages do not have to be terminated with a period.
Printing numbers in parentheses (%d) adds no value and should be avoided. Printing numbers in parentheses (%d) adds no value and should be avoided.
There are a number of driver model diagnostic macros in <linux/device.h> There are a number of driver model diagnostic macros in <linux/dev_printk.h>
which you should use to make sure messages are matched to the right device which you should use to make sure messages are matched to the right device
and driver, and are tagged with the right level: dev_err(), dev_warn(), and driver, and are tagged with the right level: dev_err(), dev_warn(),
dev_info(), and so forth. For messages that aren't associated with a dev_info(), and so forth. For messages that aren't associated with a
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment