chiark / gitweb /
copy: use btrfs reflinking only whe we know we copy full files
[elogind.git] / src / core / swap.c
index e41d77aa542f0edecb50e41bd62d62b18a574190..a6a23554c9f38a4c960af600a4ede4ef6924cc08 100644 (file)
@@ -35,7 +35,7 @@
 #include "unit-name.h"
 #include "dbus-swap.h"
 #include "special.h"
-#include "bus-errors.h"
+#include "bus-common-errors.h"
 #include "exit-status.h"
 #include "def.h"
 #include "path-util.h"
@@ -410,7 +410,7 @@ static int swap_add_one(
         return 0;
 
 fail:
-        log_unit_warning(e, "Failed to load swap unit: %s", strerror(-r));
+        log_unit_warning_errno(e, r, "Failed to load swap unit: %m");
 
         if (delete && u)
                 unit_free(u);