1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-26 14:04:03 +03:00

write trace log to stderr

This commit is contained in:
Kay Sievers 2008-10-31 16:22:55 +01:00
parent bf18270222
commit 27691aa3ae
2 changed files with 3 additions and 3 deletions

View File

@ -707,7 +707,7 @@ int udev_event_execute_run(struct udev_event *event)
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);

View File

@ -180,7 +180,7 @@ static void event_fork(struct udev_event *event)
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));
}
@ -538,7 +538,7 @@ static void udev_done(int pid, int exitstatus)
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);