lkml.org 
[lkml]   [2010]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RESEND PATCH 0/2] Make functions of dev_<level> macros, recursive vsnprintf


On Thu, 4 Mar 2010, Andrew Morton wrote:
>
> What would I need to do to make it recur more than once? Include a %pV
> in a string, like dev_printk("%s", %%pV")?

I would argue that if somebody does that, they're just broken.

The single level of recursion is really nice - it solves a real annoyance.
But if somebody starts trying to do multiple levels, that's just crazy.

Of course, I guess we don't relly have any way of sanely _counting_ the
recursion level, so we'd have to just trust people to not do crazy things.

And that's a big thing to take on trust ;)

Linus


\
 
 \ /
  Last update: 2010-03-05 00:09    [W:0.066 / U:3.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site