diff options
author | Trevor Woerner <twoerner@gmail.com> | 2021-04-23 20:40:10 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2021-10-26 17:39:49 +0200 |
commit | c04639a7d2fb46b4514780c844ea64545efbbaec (patch) | |
tree | 17644ca814b574c6892b3a3235558fc69eecb015 /Documentation/process | |
parent | docs: f2fs: fix text alignment (diff) | |
download | linux-c04639a7d2fb46b4514780c844ea64545efbbaec.tar.xz linux-c04639a7d2fb46b4514780c844ea64545efbbaec.zip |
coding-style.rst: trivial: fix location of driver model macros
The dev_printk()-like functions moved to include/linux/dev_print.h in
commit af628aae8640 ("device.h: move dev_printk()-like functions to
dev_printk.h").
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://lore.kernel.org/r/20210423184012.39300-1-twoerner@gmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/process')
-rw-r--r-- | Documentation/process/coding-style.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/process/coding-style.rst b/Documentation/process/coding-style.rst index 5756ff775233..03eb53fd029a 100644 --- a/Documentation/process/coding-style.rst +++ b/Documentation/process/coding-style.rst @@ -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 |