Re: [PATCH] printk: support structured and multi-facility log messages

From: Kay Sievers
Date: Thu Apr 05 2012 - 04:44:49 EST


On Thu, Apr 5, 2012 at 10:38, Joe Perches <joe@xxxxxxxxxxx> wrote:
> On Wed, 2012-04-04 at 21:59 +0200, Kay Sievers wrote:
>> From: Kay Sievers <kay@xxxxxxxx>
>> + * In a flat text stream of records, every record should be terminated
>> + * by "\n\n", which separates the records from each other.
>
> What do you do about "\n\n" in existing printks?
>
> $ grep -rP --include=*.[ch] '\bprintk\b.*\\n\\n' *

Messages with non-printable characters are exported to the syslog()
syscall or /proc/kmsg as they are, like it always was, but the export
to /dev/kmsg encodes the MESSAGE= property as a binary property then.

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/