printk changes for 6.3
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEESH4wyp42V4tXvYsjUqAMR0iAlPIFAmP0vCsACgkQUqAMR0iA lPKjHxAAldxJr7B5XZWRbYOw9VAQ/Qv0whfZwJ0Wl1crhx/PrB6JBkTbz/vHMj+c vZSQXOID5g858+iR7KdvejWFTnr7RdBP28rkRj6zijXYBAlrNwQtV+aXS/AHyCjR 2/cMuP6+7vqaVp8BqDyToQrZil6Us5Io/a6l4C0RQp1nQmY5A8qLg7kdtpPOcIoW yBWY+5pMJVfryr95yOjE7WxBVjpIh5eo/D1WoexoxcJNsHpe/2mAvXfZMNLMHBKL Io0RSZfrD0Pw+oHyhpX7bLxRbmYO8kajBMtMvPa2NIMQyk/Cm+2SSvDS39n1B4vm eXym5hUfSZIZUGV1cegia/exZgfvj3yCEc+8HJ0WEenlFruxXCtqwPbFwtkjsznK EjgOEehygaHGiQ7LY9cEA5ON5e7MIGsYUp+EAS2vNja81yBmAK89TlOtezzKIyU2 U4q4UUsXi4TMMNzvNu0bs4gEu2HOCTovE1O0h7C56haoVHSWWqexepvRwNhAWELY ztQz5hd8S7UIILGDTnx8nCc7W8RddfLZfl2XBuzr9gWp79SqeaGKOk10jkjBkatC 1STqkCN+Jwx5uIdF8LLg4EaNJ8QQCdDaCLvQpSJbQpFIYz7KCwk/hhczdCLsWrrp feGEwSD5u2ek5cEk840WfvKlle6fsqtLb6m98UV2/WJpjW9qtSo= =cVoE -----END PGP SIGNATURE----- Merge tag 'printk-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux Pull printk updates from Petr Mladek: - Refactor printk code for formatting messages that are shown on consoles. This is a preparatory 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 * tag 'printk-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux: printf: fix errname.c list kernel/printk/index.c: fix memory leak with using debugfs_lookup() printk: Use scnprintf() to print the message about the dropped messages on a console printk: adjust string limit macros printk: use printk_buffers for devkmsg printk: introduce console_prepend_dropped() for dropped messages printk: introduce printk_get_next_message() and printk_message printk: introduce struct printk_buffers console: Document struct console console: Use BIT() macros for @flags values printk: move size limit macros into internal.h docs: gdbmacros: print newest record
This commit is contained in:
commit
d876315445
7 changed files with 314 additions and 169 deletions
|
|
@ -21,6 +21,7 @@ static const char *names_0[] = {
|
|||
E(EADDRNOTAVAIL),
|
||||
E(EADV),
|
||||
E(EAFNOSUPPORT),
|
||||
E(EAGAIN), /* EWOULDBLOCK */
|
||||
E(EALREADY),
|
||||
E(EBADE),
|
||||
E(EBADF),
|
||||
|
|
@ -31,15 +32,17 @@ static const char *names_0[] = {
|
|||
E(EBADSLT),
|
||||
E(EBFONT),
|
||||
E(EBUSY),
|
||||
#ifdef ECANCELLED
|
||||
E(ECANCELLED),
|
||||
#endif
|
||||
E(ECANCELED), /* ECANCELLED */
|
||||
E(ECHILD),
|
||||
E(ECHRNG),
|
||||
E(ECOMM),
|
||||
E(ECONNABORTED),
|
||||
E(ECONNREFUSED), /* EREFUSED */
|
||||
E(ECONNRESET),
|
||||
E(EDEADLK), /* EDEADLOCK */
|
||||
#if EDEADLK != EDEADLOCK /* mips, sparc, powerpc */
|
||||
E(EDEADLOCK),
|
||||
#endif
|
||||
E(EDESTADDRREQ),
|
||||
E(EDOM),
|
||||
E(EDOTDOT),
|
||||
|
|
@ -166,14 +169,17 @@ static const char *names_0[] = {
|
|||
E(EUSERS),
|
||||
E(EXDEV),
|
||||
E(EXFULL),
|
||||
|
||||
E(ECANCELED), /* ECANCELLED */
|
||||
E(EAGAIN), /* EWOULDBLOCK */
|
||||
E(ECONNREFUSED), /* EREFUSED */
|
||||
E(EDEADLK), /* EDEADLOCK */
|
||||
};
|
||||
#undef E
|
||||
|
||||
#ifdef EREFUSED /* parisc */
|
||||
static_assert(EREFUSED == ECONNREFUSED);
|
||||
#endif
|
||||
#ifdef ECANCELLED /* parisc */
|
||||
static_assert(ECANCELLED == ECANCELED);
|
||||
#endif
|
||||
static_assert(EAGAIN == EWOULDBLOCK); /* everywhere */
|
||||
|
||||
#define E(err) [err - 512 + BUILD_BUG_ON_ZERO(err < 512 || err > 550)] = "-" #err
|
||||
static const char *names_512[] = {
|
||||
E(ERESTARTSYS),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue