History

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

Linus Torvalds committed 3 years ago

Commit d8763152 parents cd43b50 392143c7 files · +313 −168Browse files

Showing the changes to lib (1 of 7 files). Show all

Unified · Split

lib/errname.c+14−8
@@ -21,6 +21,7 @@ static const char *names_0[] = { · 20 unmodified lines
21 E(EADDRNOTAVAIL),21 E(EADDRNOTAVAIL),
22 E(EADV),22 E(EADV),
23 E(EAFNOSUPPORT),23 E(EAFNOSUPPORT),
24 E(EAGAIN), /* EWOULDBLOCK */
24 E(EALREADY),25 E(EALREADY),
25 E(EBADE),26 E(EBADE),
26 E(EBADF),27 E(EBADF),
@@ -31,15 +32,17 @@ static const char *names_0[] = { · 4 unmodified lines
31 E(EBADSLT),32 E(EBADSLT),
32 E(EBFONT),33 E(EBFONT),
33 E(EBUSY),34 E(EBUSY),
34#ifdef ECANCELLED35 E(ECANCELED), /* ECANCELLED */
35 E(ECANCELLED),
36#endif
37 E(ECHILD),36 E(ECHILD),
38 E(ECHRNG),37 E(ECHRNG),
39 E(ECOMM),38 E(ECOMM),
40 E(ECONNABORTED),39 E(ECONNABORTED),
40 E(ECONNREFUSED), /* EREFUSED */
41 E(ECONNRESET),41 E(ECONNRESET),
42 E(EDEADLK), /* EDEADLOCK */
43#if EDEADLK != EDEADLOCK /* mips, sparc, powerpc */
42 E(EDEADLOCK),44 E(EDEADLOCK),
45#endif
43 E(EDESTADDRREQ),46 E(EDESTADDRREQ),
44 E(EDOM),47 E(EDOM),
45 E(EDOTDOT),48 E(EDOTDOT),
@@ -166,14 +169,17 @@ static const char *names_0[] = { · 120 unmodified lines
166 E(EUSERS),169 E(EUSERS),
167 E(EXDEV),170 E(EXDEV),
168 E(EXFULL),171 E(EXFULL),
169
170 E(ECANCELED), /* ECANCELLED */
171 E(EAGAIN), /* EWOULDBLOCK */
172 E(ECONNREFUSED), /* EREFUSED */
173 E(EDEADLK), /* EDEADLOCK */
174};172};
175#undef E173#undef E
176 174
175#ifdef EREFUSED /* parisc */
176static_assert(EREFUSED == ECONNREFUSED);
177#endif
178#ifdef ECANCELLED /* parisc */
179static_assert(ECANCELLED == ECANCELED);
180#endif
181static_assert(EAGAIN == EWOULDBLOCK); /* everywhere */
182
177#define E(err) [err - 512 + BUILD_BUG_ON_ZERO(err < 512 || err > 550)] = "-" #err183#define E(err) [err - 512 + BUILD_BUG_ON_ZERO(err < 512 || err > 550)] = "-" #err
178static const char *names_512[] = {184static const char *names_512[] = {
179 E(ERESTARTSYS),185 E(ERESTARTSYS),

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t