summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-09-15 11:53:03 +0200
committerTom Gundersen <teg@jklm.no>2014-09-16 12:12:56 +0200
commitebc164ef40cfa0fa01ce77a6a966129cc611d4ff (patch)
treee09e55c0c7dff72ac978d48f8548e55cc62c7385
parent3f56f784b98a4b0ad45409a9a19fd787cd7ae455 (diff)
udev: only print after final log level has been determined
This delays label_init(), and drops the (duplicate) printing of version information.
-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 04014b468a..cfa071eba9 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1104,9 +1104,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;
@@ -1123,6 +1120,8 @@ int main(int argc, char *argv[]) {
goto exit;
}
+ label_init("/dev");
+
/* set umask before creating any file/directory */
chdir("/");
umask(022);