chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
selinux: figure out selinux context applied on exec() before closing all fds
[elogind.git]
/
src
/
core
/
swap.c
diff --git
a/src/core/swap.c
b/src/core/swap.c
index 0384ebcdbbdf4db3fbb31dcdbb73c95564381337..346a5fd7121af758c973fd06e3b71fbbb8594f58 100644
(file)
--- a/
src/core/swap.c
+++ b/
src/core/swap.c
@@
-410,7
+410,7
@@
static int swap_add_one(
return 0;
fail:
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);
if (delete && u)
unit_free(u);
@@
-1170,7
+1170,7
@@
static int swap_dispatch_io(sd_event_source *source, int fd, uint32_t revents, v
r = swap_load_proc_swaps(m, true);
if (r < 0) {
r = swap_load_proc_swaps(m, true);
if (r < 0) {
- log_error_errno(
-
r, "Failed to reread /proc/swaps: %m");
+ log_error_errno(r, "Failed to reread /proc/swaps: %m");
/* Reset flags, just in case, for late calls */
LIST_FOREACH(units_by_type, u, m->units_by_type[UNIT_SWAP]) {
/* Reset flags, just in case, for late calls */
LIST_FOREACH(units_by_type, u, m->units_by_type[UNIT_SWAP]) {