printk: Provide helper for message prepending
authorJohn Ogness <john.ogness@linutronix.de>
Wed, 4 Sep 2024 12:05:29 +0000 (14:11 +0206)
committerPetr Mladek <pmladek@suse.com>
Wed, 4 Sep 2024 13:56:32 +0000 (15:56 +0200)
commit75d430372abba5210fbc56a813d2515c001a4f45
tree1ed18547f640c1e13ccf661a2d027ef1cb8ae9c6
parent13189fa73afae2b961d29132fd36d9cc0be77ecb
printk: Provide helper for message prepending

In order to support prepending different texts to printk
messages, split out the prepending code into a helper
function.

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