diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-07-13 15:45:45 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-07-13 15:45:45 +0200 |
commit | 4b2615684b312a6457d9fdd8f455bc2a0def9bc9 (patch) | |
tree | 488455a97c249651471c292cda1ee8b1bc011a10 | |
parent | a504223d9a448ab338e369997c39c04067c8f906 (diff) |
log: correct usage of logging API at a few places
-rw-r--r-- | src/machine-id-setup/machine-id-setup-main.c | 1 | ||||
-rw-r--r-- | src/tty-ask-password-agent/tty-ask-password-agent.c | 1 | ||||
-rw-r--r-- | src/udev/udevadm.c | 2 | ||||
-rw-r--r-- | src/udev/udevd.c | 3 |
4 files changed, 4 insertions, 3 deletions
diff --git a/src/machine-id-setup/machine-id-setup-main.c b/src/machine-id-setup/machine-id-setup-main.c index 60f9ef837b..6373ebc2db 100644 --- a/src/machine-id-setup/machine-id-setup-main.c +++ b/src/machine-id-setup/machine-id-setup-main.c @@ -91,7 +91,6 @@ static int parse_argv(int argc, char *argv[]) { int main(int argc, char *argv[]) { int r; - log_set_target(LOG_TARGET_AUTO); log_parse_environment(); log_open(); diff --git a/src/tty-ask-password-agent/tty-ask-password-agent.c b/src/tty-ask-password-agent/tty-ask-password-agent.c index 2e74a25972..2ab3401e6f 100644 --- a/src/tty-ask-password-agent/tty-ask-password-agent.c +++ b/src/tty-ask-password-agent/tty-ask-password-agent.c @@ -738,6 +738,7 @@ static int parse_argv(int argc, char *argv[]) { int main(int argc, char *argv[]) { int r; + log_set_target(LOG_TARGET_AUTO); log_parse_environment(); log_open(); diff --git a/src/udev/udevadm.c b/src/udev/udevadm.c index 5217d7f9dd..818edee38f 100644 --- a/src/udev/udevadm.c +++ b/src/udev/udevadm.c @@ -99,8 +99,8 @@ int main(int argc, char *argv[]) if (udev == NULL) goto out; - log_open(); log_parse_environment(); + log_open(); udev_set_log_fn(udev, udev_main_log); label_init("/dev"); diff --git a/src/udev/udevd.c b/src/udev/udevd.c index 176e4e2930..ee78b396b7 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -1083,8 +1083,9 @@ int main(int argc, char *argv[]) if (udev == NULL) goto exit; - log_open(); + log_set_target(LOG_TARGET_AUTO); log_parse_environment(); + log_open(); udev_set_log_fn(udev, udev_main_log); log_debug("version %s\n", VERSION); label_init("/dev"); |