[GIT PULL] printk for 6.3

From: Petr Mladek
Date: Tue Feb 21 2023 - 09:25:01 EST


Hi Linus,

please pull the latest printk changes from

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

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

- Refactor printk code for formatting messages that are shown on consoles.
It is a preparation step for introducing atomic consoles which could not
share the global buffers.

- Prevent memory leak when removing printk index in debugfs.

- Dump also the newest printk message by the sample gdbmacro.

- Fix a compiler warning.

----------------------------------------------------------------
Arnd Bergmann (1):
printf: fix errname.c list

Greg Kroah-Hartman (1):
kernel/printk/index.c: fix memory leak with using debugfs_lookup()

John Ogness (7):
docs: gdbmacros: print newest record
printk: move size limit macros into internal.h
printk: introduce struct printk_buffers
printk: introduce printk_get_next_message() and printk_message
printk: introduce console_prepend_dropped() for dropped messages
printk: use printk_buffers for devkmsg
printk: adjust string limit macros

Petr Mladek (2):
printk: Use scnprintf() to print the message about the dropped messages on a console
Merge branch 'rework/buffers-cleanup' into for-linus

Thomas Gleixner (2):
console: Use BIT() macros for @flags values
console: Document struct console

Documentation/admin-guide/kdump/gdbmacros.txt | 2 +-
include/linux/console.h | 100 ++++++---
include/linux/printk.h | 2 -
kernel/printk/index.c | 2 +-
kernel/printk/internal.h | 45 ++++
kernel/printk/printk.c | 308 +++++++++++++++-----------
lib/errname.c | 22 +-
7 files changed, 313 insertions(+), 168 deletions(-)