X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udevinfo.c;h=103ebce08cad295a2d7443237e37e545031705cf;hb=3a8c51a771b5c67d5cf0002980254ef175668630;hp=aa9d20a7736a7cb19b67133a551658a204bbe236;hpb=ac4dc8746501ae3b9c859e5714f508d90cbe41a7;p=elogind.git diff --git a/udevinfo.c b/udevinfo.c index aa9d20a77..103ebce08 100644 --- a/udevinfo.c +++ b/udevinfo.c @@ -38,6 +38,12 @@ char **main_argv; int main_argc; +unsigned char logname[42]; + +int log_ok(void) +{ + return 1; +} static int print_all_attributes(const char *path) { @@ -397,7 +403,7 @@ help: " -n NAME node name used for query\n" "\n" " -r print udev root\n" - " -a print all attributes along the chain of the device\n" + " -a print all SYSFS_attributes along the device chain\n" " -d dump whole database\n" " -V print udev version\n" " -h print this help text\n" @@ -412,6 +418,8 @@ int main(int argc, char *argv[], char *envp[]) main_argv = argv; main_argc = argc; + init_logging("udevinfo"); + /* initialize our configuration */ udev_init_config();