From: Lennart Poettering Date: Tue, 30 Jan 2024 10:31:56 +0000 (+0100) Subject: sleep: remove redundant debug log message X-Git-Tag: v256-rc1~1017^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b782080b7aabe0e214c3ee1dca44377a90202e82;p=thirdparty%2Fsystemd.git sleep: remove redundant debug log message --- diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c index 6864f631f1f..8498d45f1a3 100644 --- a/src/sleep/sleep.c +++ b/src/sleep/sleep.c @@ -427,15 +427,13 @@ static int custom_timer_suspend(const SleepConfig *sleep_config) { if (r < 0) log_warning_errno(r, "Failed to estimate and update battery discharge rate, ignoring: %m"); } else - log_debug("System woke up too early to estimate discharge rate"); + log_debug("System woke up too early to estimate discharge rate."); if (!woken_by_timer) /* Return as manual wakeup done. This also will return in case battery was charged during suspension */ return 0; r = check_wakeup_type(); - if (r < 0) - log_debug_errno(r, "Failed to check hardware wakeup type, ignoring: %m"); if (r > 0) { log_debug("wakeup type is APM timer"); /* system should hibernate */