diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-12-04 10:56:44 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-12-12 10:48:38 +0100 |
commit | aba311f7ffb1370156f48061a5fdc2da9551e57f (patch) | |
tree | 107e54267e8f0e749729565abfeb454e0b274743 /src/veritysetup | |
parent | udev: introduce udev net_id "naming schemes" (diff) | |
download | systemd-aba311f7ffb1370156f48061a5fdc2da9551e57f.tar.xz systemd-aba311f7ffb1370156f48061a5fdc2da9551e57f.zip |
generators: configure logging before the first use
Diffstat (limited to 'src/veritysetup')
-rw-r--r-- | src/veritysetup/veritysetup-generator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/veritysetup/veritysetup-generator.c b/src/veritysetup/veritysetup-generator.c index 0f5830a6e2..51996ec37e 100644 --- a/src/veritysetup/veritysetup-generator.c +++ b/src/veritysetup/veritysetup-generator.c @@ -207,14 +207,14 @@ static int determine_devices(void) { static int run(int argc, char *argv[]) { int r; + log_setup_generator(); + if (argc > 1 && argc != 4) return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "This program takes three or no arguments."); if (argc > 1) arg_dest = argv[1]; - log_setup_generator(); - r = proc_cmdline_parse(parse_proc_cmdline_item, NULL, PROC_CMDLINE_STRIP_RD_PREFIX); if (r < 0) return log_warning_errno(r, "Failed to parse kernel command line: %m"); |