Re: [idea] request_module(const char *fmt, ...);

From: Tigran Aivazian (tigran@sco.COM)
Date: Wed Jan 12 2000 - 12:00:17 EST


> 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/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:20 EST