Skip to content

Introduce and use printk pointer extension %pV

Joe Perches lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4vsprintf: Recursive vsnprintf: Add "%pV", struct va_formatinclude/linux/kernel.h lib/vsprintf.c+14 -00 replies
2/4device.h drivers/base/core.c Convert dev_<level> logging macros to functionsdrivers/base/core.c include/linux/device.h+150 -260 replies
3/4netdevice.h net/core/dev.c: Convert netdev_<level> logging macros to functionsinclude/linux/netdevice.h net/core/dev.c+79 -190 replies
4/4netdevice.h: Change netif_<level> macros to call netdev_<level> functionsinclude/linux/netdevice.h+13 -70 replies

Reviews trailers per patch

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

PatchGreg Kroah-Hartman
SeriesA-b
1/4
2/4
3/4
4/4

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/4] Introduce and use printk pointer extension %pV

Recursive printk can reduce the total image size of an x86 defconfig about 1% by reducing duplicated KERN_<level> strings and centralizing the functions used by macros in new separate functions.

Joe Perches (4):
vsprintf: Recursive vsnprintf: Add "%pV", struct va_format device.h drivers/base/core.c Convert dev_<level> logging macros to functions netdevice.h net/core/dev.c: Convert netdev_<level> logging macros to functions netdevice.h: Change netif_<level> macros to call netdev_<level> functions

 drivers/base/core.c       |   64 +++++++++++++++++++++++++
 include/linux/device.h    |  112 ++++++++++++++++++++++++++++++++++----------
 include/linux/kernel.h    |    5 ++
 include/linux/netdevice.h |   56 ++++++++++++----------
 lib/vsprintf.c            |    9 ++++
 net/core/dev.c            |   62 +++++++++++++++++++++++++
 6 files changed, 256 insertions(+), 52 deletions(-)