]> www.infradead.org Git - users/hch/xfs.git/commit
tick/sched: Combine WARN_ON_ONCE and print_once
authorAnna-Maria Behnsen <anna-maria@linutronix.de>
Mon, 10 Jun 2024 10:35:52 +0000 (12:35 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 3 Jul 2024 19:32:55 +0000 (21:32 +0200)
commit59dbee7d4d59425658b1d86238732c575216b718
treeabce868ec02162d894b492ba246f88ce699ec4a8
parent2b83be20ae60308f5da31c696137a9561c44c24c
tick/sched: Combine WARN_ON_ONCE and print_once

When the WARN_ON_ONCE() triggers, the printk() of the additional
information related to the warning will not happen in print level
"warn". When reading dmesg with a restriction to level "warn", the
information published by the printk_once() will not show up there.

Transform WARN_ON_ONCE() and printk_once() into a WARN_ONCE().

Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20240610103552.25252-1-anna-maria@linutronix.de
kernel/time/tick-sched.c