Messages in this thread | | | Date | Wed, 12 Jan 2000 17:00:17 +0000 (GMT) | From | Tigran Aivazian <> | Subject | Re: [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/
| |