From 3e501c7b9285410dd39016808ddb0ca6f2c4c6ee Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Thu, 14 Mar 2013 16:21:50 -0400 Subject: src/udev/udevadm-hwdb.c: fix help This follows upstream commit e32a4e1ef4c61561b08f50f73f82587bdc946b40 Signed-off-by: Anthony G. Basile --- src/udev/udevadm-hwdb.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/udev/udevadm-hwdb.c') diff --git a/src/udev/udevadm-hwdb.c b/src/udev/udevadm-hwdb.c index 917d1e0eaf..4f43953895 100644 --- a/src/udev/udevadm-hwdb.c +++ b/src/udev/udevadm-hwdb.c @@ -474,9 +474,10 @@ static int import_file(struct trie *trie, const char *filename) { } static void help(void) { - printf("Usage: udevadm hwdb [--create] [--help] [--root ]\n" + printf("Usage: udevadm hwdb OPTIONS\n" " --update update the hardware database\n" - " --test query database and print result\n" + " --test= query database and print result\n" + " --root= alternative root path in the filesystem\n" " --help\n\n"); } @@ -488,7 +489,8 @@ static int adm_hwdb(struct udev *udev, int argc, char *argv[]) { { "help", no_argument, NULL, 'h' }, {} }; - const char *test = NULL, *root_path = NULL; + const char *test = NULL; + const char *root_path = NULL; char *udev_hwdb_path = UDEV_HWDB_BIN; bool update = false; struct trie *trie = NULL; -- cgit v1.2.3-54-g00ecf