printk: introduce new macros pr_<level>_cont()
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest3 patches 16 repliesIn review
Changes in v2 from the cover letter
* Introduce new pr_<level>_cont() macros in printk.h
* Add checkpatch.pl validation
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | printk: introduce new macros pr_<level>_cont()include/ | +23 | 8 replies | |
| 2/3 | checkpatch: handle new pr_<level>_cont macrosscripts/ | +8 | 2 replies | |
| 3/3 | power: process: use explicit levels for printk continuationskernel/ | +9 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/3] printk: introduce new macros pr_<level>_cont()
This series adds new printk wrapper macros pr_<level>_cont(). These create continuation messages with an explicit level.
Explicit levels are useful when a continuation message is split from its main message. Without the explicit level KERN_DEFAULT ("warn" by default) is used which can lead to stray partial log messages when filtering by level.
Also checkpatch is modified to recommend the new macros over plain pr_cont().
Lastly the new macros are used in kernel/power/process.c as this file uses continuation messages during system suspend-resume which creates a high likelyhood of interspersed messages.
Changelog:
This was original a single patch but was expanded into a series.
v1: https://lore.kernel.org/lkml/[email protected]/
v1 -> v2:
* Introduce new pr_<level>_cont() macros in printk.h
* Add checkpatch.pl validation
Thomas Weißschuh (3):
printk: introduce new macros pr_<level>_cont()
checkpatch: handle new pr_<level>_cont macros
power: process: use explicit levels for printk continuations
include/linux/printk.h | 23 +++++++++++++++++++++++ kernel/power/process.c | 18 +++++++++--------- scripts/checkpatch.pl | 10 ++++++++-- 3 files changed, 40 insertions(+), 11 deletions(-)
base-commit: 0b1dcc2cf55ae6523c6fbd0d741b3ac28c9f4536
Signature · 1 line
2.38.1