summaryrefslogtreecommitdiff
path: root/src/shutdown
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-11-15 14:58:06 +0100
committerLennart Poettering <lennart@poettering.net>2019-11-15 14:58:06 +0100
commit4e201419b71e9f53f39b3e9154a552a28e881f3f (patch)
tree5d66de5414b876830300d8266a0b083c71a829d0 /src/shutdown
parent2cdd0d612d18732db845f2f44f217d6e00c62010 (diff)
downloadsystemd-4e201419b71e9f53f39b3e9154a552a28e881f3f.tar.gz
systemd-4e201419b71e9f53f39b3e9154a552a28e881f3f.tar.bz2
systemd-4e201419b71e9f53f39b3e9154a552a28e881f3f.zip
umount: log on all errors
Diffstat (limited to 'src/shutdown')
-rw-r--r--src/shutdown/umount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shutdown/umount.c b/src/shutdown/umount.c
index 11be9466a5..88dc03ed62 100644
--- a/src/shutdown/umount.c
+++ b/src/shutdown/umount.c
@@ -206,11 +206,11 @@ int swap_list_get(const char *swaps, MountPoint **head) {
swap = new0(MountPoint, 1);
if (!swap)
- return -ENOMEM;
+ return log_oom();
swap->path = strdup(source);
if (!swap->path)
- return -ENOMEM;
+ return log_oom();
LIST_PREPEND(mount_point, *head, TAKE_PTR(swap));
}