summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Ospite <ao2@ao2.it>2015-05-06 10:19:51 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2015-05-12 15:49:59 +1000
commita7772415d56001b0ff7ff129b42f980d46019111 (patch)
treef49e4a7c67eacdf782cd7b7ecc831e4f3a464f65
parent18197dde71e00cd5e4c7a2662726310a4d5de454 (diff)
downloadlinux-a7772415d56001b0ff7ff129b42f980d46019111.tar.gz
linux-a7772415d56001b0ff7ff129b42f980d46019111.tar.xz
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: Antonio 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: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--kernel/printk/printk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index c099b082cd02..5a3f76f8cdfe 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -195,14 +195,14 @@ static int console_may_schedule;
* need to be changed in the future, when the requirements change.
*
* /dev/kmsg exports the structured data in the following line format:
- * "level,sequnum,timestamp;<message text>\n"
+ * "level,sequnum,timestamp[,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
* with a space character and terminated by a newline. All possible
* 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 {