From d847507434bbeda3e22b5f2c1cd5c486905ec1ab Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 16 May 2003 22:39:18 -0700 Subject: Make request_module() take a printf-like vararg argument instead of a string. This is what a lot of the callers really wanted. --- include/linux/kmod.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/linux') diff --git a/include/linux/kmod.h b/include/linux/kmod.h index 9e9e2c38ab34..7fa02a737518 100644 --- a/include/linux/kmod.h +++ b/include/linux/kmod.h @@ -24,12 +24,12 @@ #include #ifdef CONFIG_KMOD -extern int request_module(const char * name); +extern int request_module(const char * name, ...) __attribute__ ((format (printf, 1, 2))); #else -static inline int request_module(const char * name) { return -ENOSYS; } +static inline int request_module(const char * name, ...) { return -ENOSYS; } #endif -#define try_then_request_module(x, mod) ((x) ?: request_module(mod), (x)) +#define try_then_request_module(x, mod...) ((x) ?: request_module(mod), (x)) extern int call_usermodehelper(char *path, char *argv[], char *envp[], int wait); #ifdef CONFIG_HOTPLUG -- cgit v1.2.3