summaryrefslogtreecommitdiffstats
path: root/src/fstab-generator/fstab-generator.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-09 16:06:36 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-10 14:46:59 +0100
commit7211c853c26554ad1f58c2cfa1d5a0bfc059bf15 (patch)
tree8ec5ffd55875cf64df5df97d7cf10c6449d23fea /src/fstab-generator/fstab-generator.c
parentReturn -EINVAL from _from_string() functions (diff)
downloadsystemd-7211c853c26554ad1f58c2cfa1d5a0bfc059bf15.tar.xz
systemd-7211c853c26554ad1f58c2cfa1d5a0bfc059bf15.zip
tree-wide: propagate error code from _from_string() functions
Now that we know we have something useful, no need to make an answer up.
Diffstat (limited to 'src/fstab-generator/fstab-generator.c')
-rw-r--r--src/fstab-generator/fstab-generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
index 2318b65b0e..b8862f0793 100644
--- a/src/fstab-generator/fstab-generator.c
+++ b/src/fstab-generator/fstab-generator.c
@@ -888,7 +888,7 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat
if (value) {
m = volatile_mode_from_string(value);
if (m < 0)
- log_warning("Failed to parse systemd.volatile= argument: %s", value);
+ log_warning_errno(m, "Failed to parse systemd.volatile= argument: %s", value);
else
arg_volatile_mode = m;
} else