X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udevinfo.c;h=ce9804e2161322ea67789d589b8620c422805eff;hb=0d9057a1cebf2058c36879278b7ba03a5c8ed81f;hp=9ba302cbdc2c5e6afda8e0102822efe423a54a2c;hpb=0d1ecb44a0b8c00b0fc6314d19e1bc8efd0f32bb;p=elogind.git diff --git a/udevinfo.c b/udevinfo.c index 9ba302cbd..ce9804e21 100644 --- a/udevinfo.c +++ b/udevinfo.c @@ -30,7 +30,7 @@ #include "libsysfs/sysfs/libsysfs.h" #include "libsysfs/dlist.h" #include "udev.h" -#include "udev_lib.h" +#include "udev_utils.h" #include "udev_version.h" #include "udev_db.h" #include "logging.h" @@ -242,7 +242,7 @@ static int print_sysfs_devices(void) static int process_options(int argc, char *argv[]) { - static const char short_options[] = "adn:p:q:rsVh"; + static const char short_options[] = "an:p:q:rsVh"; int option; int retval = 1; struct udevice udev; @@ -401,7 +401,7 @@ print: break; case PATH: - strfieldcpy(result, udev.devpath); + strfieldcpy(result, path); break; case ALL: @@ -439,7 +439,7 @@ exit: } help: - printf("Usage: [-anpqrdVh]\n" + printf("Usage: udevinfo [-anpqrVh]\n" " -q TYPE query database for the specified value:\n" " 'name' name of device node\n" " 'symlink' pointing to node\n"