]> git.baikalelectronics.ru Git - kernel.git/commit
printk: add con_printk() macro for console details
authorJohn Ogness <john.ogness@linutronix.de>
Thu, 21 Apr 2022 21:22:43 +0000 (23:28 +0206)
committerPetr Mladek <pmladek@suse.com>
Fri, 22 Apr 2022 19:30:57 +0000 (21:30 +0200)
commit831c29956b2cb1ac0ccef282716b76607001b1c7
treead15e43a7fc9b8349f70cee46ef09ea3436e0d3c
parent2d052c5820c1f74e41c8a828a2e7319127033739
printk: add con_printk() macro for console details

It is useful to generate log messages that include details about
the related console. Rather than duplicate the code to assemble
the details, put that code into a macro con_printk().

Once console printers become threaded, this macro will find more
users.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20220421212250.565456-9-john.ogness@linutronix.de
kernel/printk/printk.c