summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-04-08 19:54:44 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-04-09 10:17:54 +0200
commit0ed4b54e05e8436685cab79177c64a5fe8a2d15c (patch)
treedd31ef8d8eaa02de3ddba6992415be2b23f6ca00
parentMerge pull request #15368 from poettering/color-fix (diff)
downloadsystemd-0ed4b54e05e8436685cab79177c64a5fe8a2d15c.tar.xz
systemd-0ed4b54e05e8436685cab79177c64a5fe8a2d15c.zip
sleep: improve log msg slightly
Let's make the log msgs a bit longer, to make clearer what is going on here... Prompted bymy attempts to debug #15354
-rw-r--r--src/shared/sleep-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c
index e63ef0f261..6dbdff7b28 100644
--- a/src/shared/sleep-config.c
+++ b/src/shared/sleep-config.c
@@ -223,7 +223,7 @@ static int calculate_swap_file_offset(const SwapEntry *swap, uint64_t *ret_offse
fd = open(swap->device, O_RDONLY|O_CLOEXEC|O_NOCTTY);
if (fd < 0)
- return log_error_errno(errno, "Failed to open %s: %m", swap->device);
+ return log_error_errno(errno, "Failed to open swap file %s to determine on-disk offset: %m", swap->device);
if (fstat(fd, &sb) < 0)
return log_error_errno(errno, "Failed to stat %s: %m", swap->device);