summaryrefslogtreecommitdiff
path: root/udev/udevd.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-06-09 22:47:48 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-06-09 22:47:48 +0200
commit9060b066d9e7aaca9795010ac5fff61018947f87 (patch)
treee79743bf9b075b10e2de962579e63a30ce36202e /udev/udevd.c
parent119f66fc36b4f5164fb4a9ece247938e97609a05 (diff)
move syslog wrapper to libudev
Diffstat (limited to 'udev/udevd.c')
-rw-r--r--udev/udevd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/udev/udevd.c b/udev/udevd.c
index d63fa7f486..292f4374d7 100644
--- a/udev/udevd.c
+++ b/udev/udevd.c
@@ -213,8 +213,8 @@ static void worker_new(struct event *event)
udev_ctrl_unref(udev_ctrl);
close(pfd[FD_SIGNAL].fd);
close(worker_watch[READ_END]);
- logging_close();
- logging_init("udevd-work");
+ udev_log_close();
+ udev_log_init("udevd-work");
setpriority(PRIO_PROCESS, 0, UDEV_PRIORITY);
/* set signal handlers */
@@ -288,7 +288,7 @@ static void worker_new(struct event *event)
}
udev_monitor_unref(worker_monitor);
- logging_close();
+ udev_log_close();
exit(0);
}
case -1:
@@ -763,7 +763,7 @@ int main(int argc, char *argv[])
if (udev == NULL)
goto exit;
- logging_init("udevd");
+ udev_log_init("udevd");
udev_set_log_fn(udev, log_fn);
info(udev, "version %s\n", VERSION);
udev_selinux_init(udev);
@@ -1069,6 +1069,6 @@ exit:
udev_monitor_unref(monitor);
udev_selinux_exit(udev);
udev_unref(udev);
- logging_close();
+ udev_log_close();
return rc;
}