linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* key/value-pairs for improved printk()
@ 2012-04-06 20:23 Dan Luedtke
  2012-04-06 23:58 ` Al Viro
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Luedtke @ 2012-04-06 20:23 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: kay

Hello everyone,

I'd like to start a discussion about possible key/value pairs for
printk() used by filesystem drivers.

I am refering to the following message, please skim through it, if you
haven't already:
> from:       Kay Sievers kay@vrfy.org via vger.kernel.org 
> to:         linux-kernel@vger.kernel.org
> date:       Wed, Apr 4, 2012 at 9:59 PM
> subject:    [PATCH] printk: support structured and multi-facility log
>             messages
> Message-ID: <1333569554.864.3.camel@mop>

Kay suggests improving printk() by adding key/value-formatted informaton
to log events.

Kay wrote:
> 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.

I know this is a very early stage, but the earlier we start discussing
this issue, the less uncrontrolled growth there will be when this is
going to be used widely some day.


To throw something in the ring, I suggest we append all printk() after
mounting (e.g. fill_super when autodetecting a fs) with key/value pairs
like
  filesystem=mycoolfs
  device=sda1
  success=true

I hope this gets the discussion started!

Greetings,
danrl

-- 
Dan Luedtke
http://www.danrl.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-07  9:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-06 20:23 key/value-pairs for improved printk() Dan Luedtke
2012-04-06 23:58 ` Al Viro
2012-04-07  9:41   ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).