Skip to content

printk: introduce new macros pr_<level>_cont()

Thomas Weißschuh linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. 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 filesSizeRepliesApplied
1/3printk: introduce new macros pr_<level>_cont()include/linux/printk.h+23 -08 replies
2/3checkpatch: handle new pr_<level>_cont macrosscripts/checkpatch.pl+8 -22 replies
3/3power: process: use explicit levels for printk continuationskernel/power/process.c+9 -93 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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