]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sleep: remove redundant debug log message
authorLennart Poettering <lennart@poettering.net>
Tue, 30 Jan 2024 10:31:56 +0000 (11:31 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 30 Jan 2024 10:31:56 +0000 (11:31 +0100)
src/sleep/sleep.c

index 6864f631f1f2e659be2ebe21047a03e5f79f9175..8498d45f1a3499921aa65173f51b8764a83d8b65 100644 (file)
@@ -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 */