summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-09-17 19:59:59 -0400
committerAnthony G. Basile <blueness@gentoo.org>2014-09-17 19:59:59 -0400
commit1aa456d4b9e0a3695184b18afff33b94305092d9 (patch)
tree47f269b21ea92308cf770d9344a67a5f65f8b88c /src/udev
parentaf353f0f00f9d1bbbcb18baadda2375457d2ae34 (diff)
udev: only print after final log level has been determined
This delays label_init(), and drops the (duplicate) printing of version information. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udevd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index b5350f7a42..1696c9d1ea 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1131,9 +1131,6 @@ int main(int argc, char *argv[]) {
udev_set_log_fn(udev, udev_main_log);
log_set_max_level(udev_get_log_priority(udev));
- log_debug("version %s", VERSION);
- label_init("/dev");
-
r = parse_argv(argc, argv);
if (r <= 0)
goto exit;
@@ -1150,6 +1147,8 @@ int main(int argc, char *argv[]) {
goto exit;
}
+ label_init("/dev");
+
/* set umask before creating any file/directory */
if(chdir("/")!= 0) {
log_error("unable to change into directory '/'");