Skip to content

printk: add pr_<level>_once, guard print_hex_dump

Joe Perches linux-embedded lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7include/linux/printk.h: Move console functions and variables togetherinclude/linux/printk.h+11 -110 replies
2/7include/linux/printk.h: Use space after #defineinclude/linux/printk.h+9 -90 replies
3/7include/linux/printk.h: Use and neaten no_printkinclude/linux/printk.h+43 -320 replies
4/7include/linux/printk.h: Add pr_<level>_once macrosinclude/linux/printk.h+44 -150 replies
5/7include/linux/printk.h lib/hexdump.c: Neatening and add CONFIG_PRINTK guardinclude/linux/printk.h lib/hexdump.c+30 -140 replies
6/7include/linux/printk.h: Organize printk_ratelimited macrosinclude/linux/printk.h+12 -130 replies
7/7include/linux/printk.h: Use tab not spaces for indentinclude/linux/printk.h+7 -70 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMatt Mackall
SeriesA-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] printk: add pr_<level>_once, guard print_hex_dump

There are many uses of printk_once(KERN_<level>.
Add pr_<level>_once macros to avoid printk_once(KERN_<level> pr_fmt(fmt). Add an #ifdef CONFIG_PRINTK for print_hex_dump and static inline void functions for the #else cases to reduce embedded code size. Neaten and organize the rest of the code.

Joe Perches (7):
include/linux/printk.h: Move console functions and variables together include/linux/printk.h: Use space after #define include/linux/printk.h: Use and neaten no_printk include/linux/printk.h: Add pr_<level>_once macros include/linux/printk.h lib/hexdump.c: Neatening and add CONFIG_PRINTK guard include/linux/printk.h: Organize printk_ratelimited macros include/linux/printk.h: Use tab not spaces for indent

 include/linux/printk.h |  247 +++++++++++++++++++++++++++++-------------------
 lib/hexdump.c          |    2 +
 2 files changed, 152 insertions(+), 97 deletions(-)
Signature · 1 line
1.7.3.2.245.g03276.dirty