From 904865b8c234fadfc5530b4eaaa96824aff9eba6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 25 Jul 2018 22:22:37 +0200 Subject: [PATCH] sleep-config: library code should not log beyond LOG_DEBUG --- src/shared/sleep-config.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c index cbaef4c..2ffd32b 100644 --- a/src/shared/sleep-config.c +++ b/src/shared/sleep-config.c @@ -255,14 +255,13 @@ static bool enough_swap_for_hibernation(void) { r = get_proc_field("/proc/meminfo", "Active(anon)", WHITESPACE, &active); if (r < 0) { - log_error_errno(r, "Failed to retrieve Active(anon) from /proc/meminfo: %m"); + log_debug_errno(r, "Failed to retrieve Active(anon) from /proc/meminfo: %m"); return false; } r = safe_atollu(active, &act); if (r < 0) { - log_error_errno(r, "Failed to parse Active(anon) from /proc/meminfo: %s: %m", - active); + log_debug_errno(r, "Failed to parse Active(anon) from /proc/meminfo: %s: %m", active); return false; } -- 2.7.4