提交 b389645f 编写于 作者: A Antonio Ospite 提交者: Linus Torvalds

printk: improve the description of /dev/kmsg line format

The comment about /dev/kmsg does not mention the additional values which
may actually be exported, fix that.

Also move up the part of the comment instructing the users to ignore these
additional values, this way the reading is more fluent and logically
compact.
Signed-off-by: NAntonio Ospite <ao2@ao2.it>
Cc: Joe Perches <joe@perches.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 9b597fd3
...@@ -207,14 +207,14 @@ static int console_may_schedule; ...@@ -207,14 +207,14 @@ static int console_may_schedule;
* need to be changed in the future, when the requirements change. * need to be changed in the future, when the requirements change.
* *
* /dev/kmsg exports the structured data in the following line format: * /dev/kmsg exports the structured data in the following line format:
* "<level>,<sequnum>,<timestamp>,<contflag>;<message text>\n" * "<level>,<sequnum>,<timestamp>,<contflag>[,additional_values, ... ];<message text>\n"
*
* Users of the export format should ignore possible additional values
* separated by ',', and find the message after the ';' character.
* *
* The optional key/value pairs are attached as continuation lines starting * The optional key/value pairs are attached as continuation lines starting
* with a space character and terminated by a newline. All possible * with a space character and terminated by a newline. All possible
* non-prinatable characters are escaped in the "\xff" notation. * non-prinatable characters are escaped in the "\xff" notation.
*
* Users of the export format should ignore possible additional values
* separated by ',', and find the message after the ';' character.
*/ */
enum log_flags { enum log_flags {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册