xref: /OK3568_Linux_fs/kernel/Documentation/admin-guide/clearing-warn-once.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunClearing WARN_ONCE
2*4882a593Smuzhiyun------------------
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunWARN_ONCE / WARN_ON_ONCE / printk_once only emit a message once.
5*4882a593Smuzhiyun
6*4882a593Smuzhiyunecho 1 > /sys/kernel/debug/clear_warn_once
7*4882a593Smuzhiyun
8*4882a593Smuzhiyunclears the state and allows the warnings to print once again.
9*4882a593SmuzhiyunThis can be useful after test suite runs to reproduce problems.
10