lkml.org 
[lkml]   [2000]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [idea] request_module(const char *fmt, ...);
> On Wed, 12 Jan 2000, Andreas Schwab wrote:
> > |> 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.
> >
> > Unless "hello" is "h%ell%o", or some non-literal.

strictly speaking, there is no need to document anything anywhere. If a
programmer wishes to use request_module() he should at least have a look
at its declaration and finding that it is printf()-like he will realize
that doing things like request_module("he%s%s") is illegal.

Regards,
Tigran.


-
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.068 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site