Skip to contentSkip to conversation

printk for 5.14

GIT PULL Merged Petr Mladek 2 participants 2 messages Jun 29, 2021

lore
Share & tools
lore
#0 lore raw

Linus,

please pull the latest printk changes from

git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux.git tags/printk-for-5.14

=====================================

- Add %pt[RT]s modifier to vsprintf(). It overrides ISO 8601 separator by using ' ' (space). It produces "YYYY-mm-dd HH:MM:SS" instead of "YYYY-mm-ddTHH:MM:SS".

- Correctly parse long row of numbers by sscanf() when using the field width. Add extensive sscanf() selftest.

- Generalize re-entrant CPU lock that has already been used to serialize dump_stack() output. It is part of the ongoing printk rework. It will allow to remove the obsoleted printk_safe buffers and introduce atomic consoles.

- Some code clean up and sparse warning fix.

======================================

Conflict with Andrew's -mm tree:

The commit generalizing the CPU lock conflicts with a patch that introduces dump_stack_lvl(log_lvl). The resulting code is simple. But the 3-way merge combined the hunks a messy way here.

A sample resolution can be found at

git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux.git origin/for-5.14-mm-dump_stack-loglvl-conflict

----------------------------------------------------------------
Andy Shevchenko (4):
lib/vsprintf: Allow to override ISO 8601 date and time separator
kdb: Switch to use %ptTs
nilfs2: Switch to use %ptTs
usb: host: xhci-tegra: Switch to use %ptTs

Huilong Deng (1):
printk: Remove trailing semicolon in macros

John Ogness (2):
lib/dump_stack: move cpu lock to printk.c
printk: fix cpu lock ordering

Petr Mladek (3):
Merge branch 'for-5.14-vsprintf-pts' into for-linus Merge branch 'for-5.14-vsprintf-scanf' into for-linus Merge branch 'printk-rework' into for-linus

Richard Fitzgerald (6):
lib: vsprintf: scanf: Negative number must have field width > 1
lib: vsprintf: Fix handling of number field widths in vsscanf
lib: test_scanf: Add tests for sscanf number conversion
selftests: lib: Add wrapper script for test_scanf
lib: test_scanf: Remove pointless use of type_min() with unsigned types
random32: Fix implicit truncation warning in prandom_seed_state()

 Documentation/core-api/printk-formats.rst |   7 +-
 MAINTAINERS                               |   1 +
 drivers/usb/host/xhci-tegra.c             |   6 +-
 fs/nilfs2/sysfs.c                         |  19 +-
 include/linux/dev_printk.h                |   2 +-
 include/linux/prandom.h                   |   2 +-
 include/linux/printk.h                    |  41 ++
 kernel/debug/kdb/kdb_main.c               |   9 +-
 kernel/printk/printk.c                    | 116 +++++
 lib/Kconfig.debug                         |   3 +
 lib/Makefile                              |   1 +
 lib/dump_stack.c                          |  38 +-
 lib/kstrtox.c                             |  13 +-
 lib/kstrtox.h                             |   2 +
 lib/test_printf.c                         |   5 +
 lib/test_scanf.c                          | 750 ++++++++++++++++++++++++++++++
 lib/vsprintf.c                            | 110 +++--
 tools/testing/selftests/lib/Makefile      |   2 +-
 tools/testing/selftests/lib/config        |   1 +
 tools/testing/selftests/lib/scanf.sh      |   4 +
 20 files changed, 1020 insertions(+), 112 deletions(-)
 create mode 100644 lib/test_scanf.c
 create mode 100755 tools/testing/selftests/lib/scanf.sh
merge bot Merged
#1 lore raw
The pull request you sent on Tue, 29 Jun 2021 15:34:50 +0200:

The pull request you sent on Tue, 29 Jun 2021 15:34:50 +0200:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux.git tags/printk-for-5.14

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/e563592c3e4296780e5a184a917b8b86e126f0b3

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html