util_strlcpy(program, cmd, sizeof(program));
udev_event_apply_format(event, program, sizeof(program));
if (event->trace)
- printf("run %s (%llu) '%s'\n",
+ fprintf(stderr, "run %s (%llu) '%s'\n",
udev_device_get_syspath(event->dev),
udev_device_get_seqnum(event->dev),
program);
if (debug_trace) {
event->trace = 1;
- printf("fork %s (%llu)\n",
+ fprintf(stderr, "fork %s (%llu)\n",
udev_device_get_syspath(event->dev),
udev_device_get_seqnum(event->dev));
}
exitstatus, time(NULL) - loop_event->queue_time);
loop_event->exitstatus = exitstatus;
if (debug_trace)
- printf("exit %s (%llu)\n",
+ fprintf(stderr, "exit %s (%llu)\n",
udev_device_get_syspath(loop_event->dev),
udev_device_get_seqnum(loop_event->dev));
event_queue_delete(loop_event);