X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fudev%2Fudevadm.c;h=b86d8921f36a68c7a6865ce38cc2bab374d6a6c3;hb=e530ed5e1407e0571afc01552e41365ffb01befa;hp=daa9387bf17c9be75da4844928db30a44512ea14;hpb=25e773eeb4f853804e1bf0dbd9a184f23e9b2a97;p=elogind.git diff --git a/src/udev/udevadm.c b/src/udev/udevadm.c index daa9387bf..b86d8921f 100644 --- a/src/udev/udevadm.c +++ b/src/udev/udevadm.c @@ -16,22 +16,14 @@ * along with this program. If not, see . */ -#include #include -#include #include -#include #include #include +#include "selinux-util.h" #include "udev.h" -void udev_main_log(struct udev *udev, int priority, - const char *file, int line, const char *fn, - const char *format, va_list args) { - log_metav(priority, file, line, fn, format, args); -} - static int adm_version(struct udev *udev, int argc, char *argv[]) { printf("%s\n", VERSION); return 0; @@ -65,11 +57,14 @@ static const struct udevadm_cmd *udevadm_cmds[] = { static int adm_help(struct udev *udev, int argc, char *argv[]) { unsigned int i; - fprintf(stderr, "Usage: udevadm [--help] [--version] [--debug] COMMAND [COMMAND OPTIONS]\n"); + printf("%s [--help] [--version] [--debug] COMMAND [COMMAND OPTIONS]\n\n" + "Send control commands or test the device manager.\n\n" + "Commands:\n" + , program_invocation_short_name); + for (i = 0; i < ELEMENTSOF(udevadm_cmds); i++) if (udevadm_cmds[i]->help != NULL) - printf(" %-12s %s\n", udevadm_cmds[i]->name, udevadm_cmds[i]->help); - fprintf(stderr, "\n"); + printf(" %-12s %s\n", udevadm_cmds[i]->name, udevadm_cmds[i]->help); return 0; }