https://github.com/torvalds/linux
Raw File
Tip revision: 861deac3b092f37b2c5e6871732f3e11486f7082 authored by Linus Torvalds on 24 December 2023, 00:25:56 UTC
Linux 6.7-rc7
Tip revision: 861deac
clearing-warn-once.rst
Clearing WARN_ONCE
------------------

WARN_ONCE / WARN_ON_ONCE / printk_once only emit a message once.

echo 1 > /sys/kernel/debug/clear_warn_once

clears the state and allows the warnings to print once again.
This can be useful after test suite runs to reproduce problems.
back to top