diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-16 22:39:18 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-16 22:39:18 -0700 |
| commit | d847507434bbeda3e22b5f2c1cd5c486905ec1ab (patch) | |
| tree | 85f325877503394edba7a77fd9cd40cc34d534c9 /include | |
| parent | 3584199aaf995eea33b57fb1e933711c0fffe5cf (diff) | |
Make request_module() take a printf-like vararg argument instead of a string.
This is what a lot of the callers really wanted.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/kmod.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 <linux/compiler.h> #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 |
