From 0ed4b54e05e8436685cab79177c64a5fe8a2d15c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 8 Apr 2020 19:54:44 +0200 Subject: [PATCH] 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 --- src/shared/sleep-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);