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 /udevtrigger.c | |
parent | 01ac7d96fa65e83c71d5bba40633e813e9b4015b (diff) |
udevadm: merge all udev tools into a single binary
Diffstat (limited to 'udevtrigger.c')
-rw-r--r-- | udevtrigger.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/udevtrigger.c b/udevtrigger.c index 309c54ab68..0a9dc66909 100644 --- a/udevtrigger.c +++ b/udevtrigger.c @@ -42,20 +42,6 @@ LIST_HEAD(filter_subsystem_nomatch_list); LIST_HEAD(filter_attr_match_list); LIST_HEAD(filter_attr_nomatch_list); -#ifdef USE_LOG -void log_message(int priority, const char *format, ...) -{ - va_list args; - - if (priority > udev_log_priority) - return; - - va_start(args, format); - vsyslog(priority, format, args); - va_end(args); -} -#endif - /* devices that should run last cause of their dependencies */ static int delay_device(const char *devpath) { @@ -445,7 +431,7 @@ static void scan_failed(void) } } -int main(int argc, char *argv[], char *envp[]) +int udevtrigger(int argc, char *argv[], char *envp[]) { int failed = 0; int option; @@ -499,7 +485,7 @@ int main(int argc, char *argv[], char *envp[]) name_list_add(&filter_attr_nomatch_list, optarg, 0); break; case 'h': - printf("Usage: udevtrigger OPTIONS\n" + printf("Usage: udevadm trigger OPTIONS\n" " --verbose print the list of devices while running\n" " --dry-run do not actually trigger the events\n" " --retry-failed trigger only the events which have been\n" |