fprintf(stderr, "%s: ", fn);
vfprintf(stderr, format, args);
} else {
- vfprintf(stderr, format, args);
+ va_list args2;
+
+ va_copy(args2, args);
+ vfprintf(stderr, format, args2);
+ va_end(args2);
vsyslog(priority, format, args);
}
}
udev_set_log_fn(udev, log_fn);
udev_selinux_init(udev);
- while (1) {
+ for (;;) {
int option;
option = getopt_long(argc, argv, "+dhV", options, NULL);
}
command = argv[optind];
+ info(udev, "runtime dir '%s'\n", udev_get_run_path(udev));
+
if (command != NULL)
for (i = 0; cmds[i].cmd != NULL; i++) {
if (strcmp(cmds[i].name, command) == 0) {