Messages in this thread | | | Date | Wed, 12 Jan 2000 16:16:51 +0100 | Subject | Re: [idea] request_module(const char *fmt, ...); | From | Andreas Schwab <> |
| |
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/
| |