mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 11:53:53 +00:00
coding-style.rst: trivial: fix location of driver model macros
The dev_printk()-like functions moved to include/linux/dev_print.h in
commit af628aae86 ("device.h: move dev_printk()-like functions to
dev_printk.h").
Signed-off-by: Trevor Woerner <[email protected]>
Reviewed-by: Shuah Khan <[email protected]>
Reviewed-by: Miguel Ojeda <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
This commit is contained in:
committed by
Jonathan Corbet
parent
8c3b018874
commit
c04639a7d2
@@ -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.
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user