]> err.no Git - systemd/commitdiff
write trace log to stderr
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 31 Oct 2008 15:22:55 +0000 (16:22 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 31 Oct 2008 15:22:55 +0000 (16:22 +0100)
udev/udev-event.c
udev/udevd.c

index 79a4cde65142643f8812c3f8d87f49830b433c84..a6459eb8d931e4f071b70c96342963f3f28c07f4 100644 (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);
index 6f2e188ceaaa07a198f3a337a7a7cca126dfad72..9096f9505be922df85cd26ea2e2b518d8a95b46c 100644 (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);