diff options
author | Kay Sievers <kay@vrfy.org> | 2014-11-13 13:11:04 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2014-11-13 13:12:57 +0100 |
commit | 25e773eeb4f853804e1bf0dbd9a184f23e9b2a97 (patch) | |
tree | b8fe0c0d5d8920e3e522427342d366d722eb35be /src/udev/udevd.c | |
parent | a974cacd9ac179599f3645409664ccb254ed6bbb (diff) |
udev: switch to systemd logging functions
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r-- | src/udev/udevd.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c index a040529e6f..e03297de5b 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -644,7 +644,6 @@ static struct udev_ctrl_connection *handle_ctrl_msg(struct udev_ctrl *uctrl) { if (i >= 0) { log_debug("udevd message (SET_LOG_LEVEL) received, log_priority=%i", i); log_set_max_level(i); - udev_set_log_priority(udev, i); worker_kill(udev); } @@ -984,7 +983,6 @@ static void kernel_cmdline_options(struct udev *udev) { prio = util_log_priority(value); log_set_max_level(prio); - udev_set_log_priority(udev, prio); } else if ((value = startswith(opt, "udev.children-max="))) { r = safe_atoi(value, &arg_children_max); if (r < 0) @@ -1120,19 +1118,14 @@ int main(int argc, char *argv[]) { log_parse_environment(); log_open(); - udev_set_log_fn(udev, udev_main_log); - log_set_max_level(udev_get_log_priority(udev)); - r = parse_argv(argc, argv); if (r <= 0) goto exit; kernel_cmdline_options(udev); - if (arg_debug) { + if (arg_debug) log_set_max_level(LOG_DEBUG); - udev_set_log_priority(udev, LOG_DEBUG); - } if (getuid() != 0) { log_error("root privileges required"); |