Skip to content

lib/vsprintf: refactor and introduce %pl specifier

Andy Shevchenko lkml 1 version In review

Get series with b4
b4 am 1452810221-116505-1-git-send-email-andriy.shevchenko@linux.intel.com

Versions newest first

  1. v2 Latest11 patches 8 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11lib/vsprintf: introduce put_one_char() for 3 line idiomlib/vsprintf.c+55 -1251 reply
2/11lib/vsprintf: make default_dec_spec globallib/test_printf.c lib/vsprintf.c+12 -141 reply
3/11lib/vsprintf: make default_str_spec globallib/vsprintf.c+18 -170 replies
4/11lib/string_helpers: export string_units_{2,10} for othersinclude/linux/string_helpers.h lib/string_helpers.c+18 -90 replies
5/11lib/string_helpers: fix indentation in few placeslib/string_helpers.c+2 -30 replies
6/11lib/vsprintf: introduce %pl to print in human-readable formDocumentation/printk-formats.txt lib/test_printf.c lib/vsprintf.c+57 -13 replies
7/11x86/efi: print size and base in binary units in efi_print_memmaparch/x86/platform/efi/efi.c+5 -60 replies
8/11lib/vsprintf: allow range of prefix for %pl[From[To]]Documentation/printk-formats.txt lib/test_printf.c lib/vsprintf.c+53 -41 reply
9/11lib/vsprintf: use precision field with %pl[From[To]]Documentation/printk-formats.txt lib/test_printf.c lib/vsprintf.c+55 -11 reply
10/11cxgb4: print value in human-readable form via %.0plKMdrivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c+5 -60 replies
11/11pcmciamtd: print value in human-readable form via %.0plKMdrivers/mtd/maps/pcmciamtd.c+2 -100 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 00/11] lib/vsprintf: refactor and introduce %pl specifier

This series refactors vsprintf.c, introduces %pl specifier to print unsigned long long value in human-readable format, enhances EFI messages, and converts existing users of such functionality.

The series has been tested on 32-bit and 64-bit Intel platforms with test_printf.c suite.

In the future someone can extend %pl to cover the cases like string_get_size() does.

Andy Shevchenko (10):
lib/vsprintf: introduce put_one_char() for 3 line idiom lib/vsprintf: make default_dec_spec global lib/vsprintf: make default_str_spec global lib/string_helpers: export string_units_{2,10} for others lib/string_helpers: fix indentation in few places lib/vsprintf: introduce %pl to print in human-readable form lib/vsprintf: allow range of prefix for %pl[From[To]] lib/vsprintf: use precision field with %pl[From[To]]
cxgb4: print value in human-readable form via %.0plKM
pcmciamtd: print value in human-readable form via %.0plKM

Robert Elliott (1):
x86/efi: print size and base in binary units in efi_print_memmap

 Documentation/printk-formats.txt                   |  22 ++
 arch/x86/platform/efi/efi.c                        |  11 +-
 drivers/mtd/maps/pcmciamtd.c                       |  12 +-
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c |  11 +-
 include/linux/string_helpers.h                     |   6 +
 lib/string_helpers.c                               |  26 +-
 lib/test_printf.c                                  |  84 +++++-
 lib/vsprintf.c                                     | 296 ++++++++++-----------
 8 files changed, 277 insertions(+), 191 deletions(-)
Signature · 1 line
2.6.4