diff options
author | Kay Sievers <kay@vrfy.org> | 2012-04-06 20:59:45 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-04-06 20:59:45 +0200 |
commit | edf70c8c77bde4cfa615edf84040f001fdbb36d5 (patch) | |
tree | 457d03cd77efed2ce78f7f2f6d174bc72a96e6eb | |
parent | 46049ccee9bc0a09bd4f472ef25f36d65ca95e0a (diff) | |
download | patches-edf70c8c77bde4cfa615edf84040f001fdbb36d5.tar.gz |
add changelog
-rw-r--r-- | printk-dev_printk.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/printk-dev_printk.patch b/printk-dev_printk.patch index 155097d..c2a3557 100644 --- a/printk-dev_printk.patch +++ b/printk-dev_printk.patch @@ -1,3 +1,25 @@ +From: Kay Sievers <kay@vrfy.org> +Subject: driver-core: extend dev_printk() to pass structured data + +This patch extends printk() to be able to attach arbitrary key/value +pairs to logged messages, to carry machine-readable data which +describes the context of the log message at time of its +creation. Users of the log can retrieve, along with the human-readable +message, a key/value dictionary to reliably identify specific devices, +drivers, subsystems, classes and types of messages. + +The output of dev_printk() is reliably machine-readable now. In addition +to the printed plain text message, it creates a log dictionary with the +these properties: + SUBSYSTEM= - the driver-core subsytem name + DEVICE= + b12:8 - block dev_t + c127:3 - char dev_t + n8 - netdev ifindex + +sound:card0 - subsystem:devname + +Tested-by: William Douglas <william.douglas@intel.com> +Signed-off-by: Kay Sievers <kay@vrfy.org> --- drivers/base/core.c | 52 +++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 49 insertions(+), 3 deletions(-) |