Skip to content

Commit 71fc2eb

Browse files
alexshiJonathan Corbet
authored andcommitted
doc/zh_CN: add clearing-warn-once Chinese version
and link it into admin-guide. Signed-off-by: Alex Shi <[email protected]> Cc: Harry Wei <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Corbet <[email protected]>
1 parent 37a607c commit 71fc2eb

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
清除 WARN_ONCE
2+
--------------
3+
4+
WARN_ONCE / WARN_ON_ONCE / printk_once 仅仅打印一次消息.
5+
6+
echo 1 > /sys/kernel/debug/clear_warn_once
7+
8+
可以清除这种状态并且再次允许打印一次告警信息,这对于运行测试集后重现问题
9+
很有用。

Documentation/translations/zh_CN/admin-guide/index.rst

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Linux 内核用户和管理员指南
1313

1414
这个初始部分包含总体信息,包括描述内核的README, 关于内核参数的文档等。
1515

16+
Todolist:
1617

1718
README
1819
kernel-parameters
@@ -21,10 +22,13 @@ Linux 内核用户和管理员指南
2122

2223
本节介绍CPU漏洞及其缓解措施。
2324

25+
Todolist:
26+
2427
hw-vuln/index
2528

2629
下面的一组文档,针对的是试图跟踪问题和bug的用户。
2730

31+
Todolist:
2832

2933
reporting-bugs
3034
security-bugs
@@ -40,10 +44,20 @@ Linux 内核用户和管理员指南
4044
这是应用程序开发人员感兴趣的章节的开始。可以在这里找到涵盖内核ABI各个
4145
方面的文档。
4246

47+
Todolist:
48+
4349
sysfs-rules
4450

4551
本手册的其余部分包括各种指南,介绍如何根据您的喜好配置内核的特定行为。
4652

53+
54+
.. toctree::
55+
:maxdepth: 1
56+
57+
clearing-warn-once
58+
59+
Todolist:
60+
4761
acpi/index
4862
aoe/index
4963
auxdisplay/index
@@ -57,7 +71,6 @@ Linux 内核用户和管理员指南
5771
cgroup-v1/index
5872
cgroup-v2
5973
cifs/index
60-
clearing-warn-once
6174
cpu-load
6275
cputopology
6376
dell_rbu

0 commit comments

Comments
 (0)