Re: [RFC] New markers description without format strings

Christoph Hellwig <[email protected]>
Newsgroups gmane.linux.kernel.tracing
Message-ID <[email protected]>
On Mon, May 07, 2007 at 10:02:24AM -0400, Mathieu Desnoyers wrote:
> Hi,
> 
> I'll skip the implementation details, but I am considering changing the
> current marker implementation, which uses format strings, for something
> that would look like :
> 
> trace_mark(subsysname, eventname, mark_types(MARK_CHAR, MARK_ULLONG),
>            mychar, myull);

I don't like this at all.  Lots of shouting and strange syntax.  The nice
thing about format strings is that it's intuitive to any half-way experience
C programmer.  We use format string all over and thus know how to parse
and write them.  And our editors do the syntax highlighting for us :)

What would the syntax above buy you?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.