printk: add pr_<level>_once, guard print_hex_dump
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | include/linux/printk.h: Move console functions and variables togetherinclude/ | +11 | 0 replies | |
| 2/7 | include/linux/printk.h: Use space after #defineinclude/ | +9 | 0 replies | |
| 3/7 | include/linux/printk.h: Use and neaten no_printkinclude/ | +43 | 0 replies | |
| 4/7 | include/linux/printk.h: Add pr_<level>_once macrosinclude/ | +44 | 0 replies | |
| 5/7 | include/linux/printk.h lib/hexdump.c: Neatening and add CONFIG_PRINTK guardinclude/ lib/ | +30 | 0 replies | |
| 6/7 | include/linux/printk.h: Organize printk_ratelimited macrosinclude/ | +12 | 0 replies | |
| 7/7 | include/linux/printk.h: Use tab not spaces for indentinclude/ | +7 | 0 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.
| Patch | Matt Mackall |
|---|---|
| Series | A-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.
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