summaryrefslogtreecommitdiff
path: root/src/shared/sleep-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/sleep-config.c')
-rw-r--r--src/shared/sleep-config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c
index e6157f0e94..0fd307d0b0 100644
--- a/src/shared/sleep-config.c
+++ b/src/shared/sleep-config.c
@@ -233,8 +233,8 @@ static bool enough_memory_for_hibernation(void) {
r = safe_atollu(active, &act);
if (r < 0) {
- log_error("Failed to parse Active(anon) from /proc/meminfo: %s: %s",
- active, strerror(-r));
+ log_error_errno(r, "Failed to parse Active(anon) from /proc/meminfo: %s: %m",
+ active);
return false;
}