summaryrefslogtreecommitdiff
path: root/udevsettle.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-11-08 17:51:59 +0100
committerKay Sievers <kay.sievers@vrfy.org>2007-11-08 17:51:59 +0100
commit225cb03bd851adc6d269b13bdf2b1bfded2b96b9 (patch)
tree41b8b7e7042662172d545b4e29e7594411740fa9 /udevsettle.c
parent01ac7d96fa65e83c71d5bba40633e813e9b4015b (diff)
udevadm: merge all udev tools into a single binary
Diffstat (limited to 'udevsettle.c')
-rw-r--r--udevsettle.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/udevsettle.c b/udevsettle.c
index 42a03bafe3..e3982a42b0 100644
--- a/udevsettle.c
+++ b/udevsettle.c
@@ -35,22 +35,7 @@
#define DEFAULT_TIMEOUT 180
#define LOOP_PER_SECOND 20
-
-#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
-
-int main(int argc, char *argv[], char *envp[])
+int udevsettle(int argc, char *argv[], char *envp[])
{
char queuename[PATH_SIZE];
char filename[PATH_SIZE];
@@ -90,7 +75,7 @@ int main(int argc, char *argv[], char *envp[])
dbg("timeout=%i", timeout);
break;
case 'h':
- printf("Usage: udevsettle [--help] [--timeout=<seconds>]\n\n");
+ printf("Usage: udevadm settle [--help] [--timeout=<seconds>]\n\n");
goto exit;
}
}