Skip to content

RFC printk: Use a non-printable ASCII SOH for KERN_<LEVEL>

Joe Perches lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3printk: Use a non-printable ASCII KERN_<LEVEL> initiatorinclude/linux/printk.h kernel/printk.c+16 -130 replies
2/3treewide: Fix declaration and uses of old KERN_<LEVEL> stylearch/arm/lib/io-acorn.S arch/arm/vfp/vfphw.S arch/frv/kernel/kernel_thread.S +5 more+25 -200 replies
3/3printk: Set KERN_CONT to ""include/linux/printk.h+1 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/3] printk: Use a non-printable ASCII SOH for KERN_<LEVEL>

printk uses "<.>" as a start of record indicator. This can waste a bit of space and causes a bit of contortion to get a printk emitted that happens to starts with "<.>".

Use ASCII Start-of-Header (0x01) as the KERN_LEVEL initiator and save ~10K in an x86 defconfig.

Joe Perches (3):
printk: Use a non-printable ASCII KERN_<LEVEL> initiator
treewide: Fix declaration and uses of old KERN_<LEVEL> style
printk: Set KERN_CONT to ""

 arch/arm/lib/io-acorn.S              |    4 +++-
 arch/arm/vfp/vfphw.S                 |    8 +++++---
 arch/frv/kernel/kernel_thread.S      |    2 +-
 drivers/staging/wlags49_h2/hcf.c     |    8 ++++----
 drivers/staging/wlags49_h2/wl_main.c |    4 ++--
 fs/btrfs/super.c                     |    9 +++++----
 include/linux/printk.h               |   23 +++++++++++++----------
 kernel/printk.c                      |    6 +++---
 net/bridge/netfilter/ebt_log.c       |    2 +-
 sound/core/misc.c                    |    8 ++++----
 10 files changed, 41 insertions(+), 33 deletions(-)
Signature · 1 line
1.7.8.111.gad25c.dirty