chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
udevadm: merge all udev tools into a single binary
[elogind.git]
/
udevinfo.c
diff --git
a/udevinfo.c
b/udevinfo.c
index a2bc0136913070d569a62cf87a77d07181ab8977..fc45f7565d192e778173b15bc9d293c69ce62dd8 100644
(file)
--- a/
udevinfo.c
+++ b/
udevinfo.c
@@
-31,21
+31,6
@@
#include "udev.h"
#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];
static void print_all_attributes(const char *devpath, const char *key)
{
char path[PATH_SIZE];
@@
-221,7
+206,7
@@
out:
return rc;
}
return rc;
}
-int
main
(int argc, char *argv[], char *envp[])
+int
udevinfo
(int argc, char *argv[], char *envp[])
{
int option;
struct udevice *udev;
{
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("udevinfo, version %s\n", UDEV_VERSION);
goto exit;
case 'h':
- printf("Usage: udevinfo OPTIONS\n"
+ printf("Usage: udev
adm
info OPTIONS\n"
" --query=<type> query database for the specified value:\n"
" name name of device node\n"
" symlink pointing to node\n"
" --query=<type> query database for the specified value:\n"
" name name of device node\n"
" symlink pointing to node\n"