aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorKay Sievers <[email protected]>2011-03-13 02:19:51 +0000
committerGreg Kroah-Hartman <[email protected]>2011-03-14 15:49:16 +0000
commit9d90c8d9cde929cbc575098e825d7c29d9f45054 (patch)
tree49cd83812a9cbbb40cb0c6b73b13455cad0029ea /net/unix/af_unix.c
parentefivars: Add Documentation (diff)
downloadkernel-9d90c8d9cde929cbc575098e825d7c29d9f45054.tar.gz
kernel-9d90c8d9cde929cbc575098e825d7c29d9f45054.zip
printk: do not mangle valid userspace syslog prefixes
printk: do not mangle valid userspace syslog prefixes with /dev/kmsg Log messages passed to the kernel log by using /dev/kmsg or /dev/ttyprintk might contain a syslog prefix including the syslog facility value. This makes printk to recognize these headers properly, extract the real log level from it to use, and add the prefix as a proper prefix to the log buffer, instead of wrongly printing it as the log message text. Before: $ echo '<14>text' > /dev/kmsg $ dmesg -r <4>[135159.594810] <14>text After: $ echo '<14>text' > /dev/kmsg $ dmesg -r <14>[ 50.750654] text Cc: Lennart Poettering <[email protected]> Signed-off-by: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions