]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sleep-config: downgrade log level in can_s2h()
authorLennart Poettering <lennart@poettering.net>
Wed, 10 Jun 2020 14:52:08 +0000 (16:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 11 Jun 2020 08:33:56 +0000 (10:33 +0200)
As in the previous commit: can_sleep() is more a library-style function,
hence log at debug level only.

src/shared/sleep-config.c

index afc7d208c71b7fb06c05b3f19b48dc627ba67956..3a354e172e6203543aebafb9284db6bc353e5928 100644 (file)
@@ -588,8 +588,7 @@ static bool can_s2h(const SleepConfig *sleep_config) {
         int r;
 
         if (!clock_supported(CLOCK_BOOTTIME_ALARM)) {
-                log_full(errno == ENOENT ? LOG_DEBUG : LOG_WARNING,
-                         "CLOCK_BOOTTIME_ALARM is not supported");
+                log_debug("CLOCK_BOOTTIME_ALARM is not supported.");
                 return false;
         }