if (priority > udev_log_priority)
return;
- va_start(args, format);
- vsyslog(priority, format, args);
- va_end(args);
-
if (verbose) {
+ printf("[%d] ", (int) getpid());
va_start(args, format);
vprintf(format, args);
va_end(args);
printf("\n");
+ } else {
+ va_start(args, format);
+ vsyslog(priority, format, args);
+ va_end(args);
}
}
}
}
+ fclose(f);
return memsize;
}
selinux_init();
dbg("version %s", UDEV_VERSION);
- /* parse commandline options */
while (1) {
option = getopt_long(argc, argv, "dtvhV", options, NULL);
if (option == -1)