lkml.org 
[lkml]   [2000]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [idea] request_module(const char *fmt, ...);
From
Tigran Aivazian <tigran@sco.COM> writes:

|> On Tue, 11 Jan 2000, Alexander Viro wrote:
|> > Another thing being that yes, it would be nice to have printf-like _real_
|> > request_module(). The only thing to watch for is literal module name
|> > passing - if you know that name will never contain % you are fine,
|> > otherwise you'll need to go for "%s",name.
|>
|> I thought va_start/va_end magic handles that automatically, i.e. if
|> sprintf(buf, "%s", "hello") does the same as sprintf(buf, "hello") then
|> our new request_module() should work fine as well.

Unless "hello" is "h%ell%o", or some non-literal.

Andreas.

--
Andreas Schwab "And now for something
SuSE Labs completely different."
schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg

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

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.288 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site