summaryrefslogtreecommitdiff
path: root/udevinfo.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 /udevinfo.c
parent01ac7d96fa65e83c71d5bba40633e813e9b4015b (diff)
udevadm: merge all udev tools into a single binary
Diffstat (limited to 'udevinfo.c')
-rw-r--r--udevinfo.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/udevinfo.c b/udevinfo.c
index a2bc013691..fc45f7565d 100644
--- a/udevinfo.c
+++ b/udevinfo.c
@@ -31,21 +31,6 @@
#include "udev.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);
- vsyslog(priority, format, args);
- va_end(args);
-}
-#endif
-
static void print_all_attributes(const char *devpath, const char *key)
{
char path[PATH_SIZE];
@@ -221,7 +206,7 @@ out:
return rc;
}
-int main(int argc, char *argv[], char *envp[])
+int udevinfo(int argc, char *argv[], char *envp[])
{
int option;
struct udevice *udev;
@@ -336,7 +321,7 @@ int main(int argc, char *argv[], char *envp[])
printf("udevinfo, version %s\n", UDEV_VERSION);
goto exit;
case 'h':
- printf("Usage: udevinfo OPTIONS\n"
+ printf("Usage: udevadm info OPTIONS\n"
" --query=<type> query database for the specified value:\n"
" name name of device node\n"
" symlink pointing to node\n"