diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-11-08 17:51:59 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-11-08 17:51:59 +0100 |
commit | 225cb03bd851adc6d269b13bdf2b1bfded2b96b9 (patch) | |
tree | 41b8b7e7042662172d545b4e29e7594411740fa9 /udevtest.c | |
parent | 01ac7d96fa65e83c71d5bba40633e813e9b4015b (diff) |
udevadm: merge all udev tools into a single binary
Diffstat (limited to 'udevtest.c')
-rw-r--r-- | udevtest.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/udevtest.c b/udevtest.c index 7b3ea6311d..a36e503fd4 100644 --- a/udevtest.c +++ b/udevtest.c @@ -32,22 +32,6 @@ #include "udev.h" #include "udev_rules.h" - -#ifdef USE_LOG -void log_message (int priority, const char *format, ...) -{ - va_list args; - - if (priority > udev_log_priority) - return; - - va_start(args, format); - vprintf(format, args); - va_end(args); - printf("\n"); -} -#endif - static int import_uevent_var(const char *devpath) { char path[PATH_SIZE]; @@ -87,7 +71,7 @@ out: return rc; } -int main(int argc, char *argv[], char *envp[]) +int udevtest(int argc, char *argv[], char *envp[]) { int force = 0; const char *action = "add"; @@ -136,7 +120,7 @@ int main(int argc, char *argv[], char *envp[]) force = 1; break; case 'h': - printf("Usage: udevtest OPTIONS <devpath>\n" + printf("Usage: udevadm test OPTIONS <devpath>\n" " --action=<string> set action string\n" " --subsystem=<string> set subsystem string\n" " --force don't skip node/link creation\n" |