projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c02540d
)
sleep-config: downgrade log level in can_s2h()
author
Lennart Poettering
<lennart@poettering.net>
Wed, 10 Jun 2020 14:52:08 +0000
(16:52 +0200)
committer
Lennart 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
patch
|
blob
|
history
diff --git
a/src/shared/sleep-config.c
b/src/shared/sleep-config.c
index afc7d208c71b7fb06c05b3f19b48dc627ba67956..3a354e172e6203543aebafb9284db6bc353e5928 100644
(file)
--- a/
src/shared/sleep-config.c
+++ b/
src/shared/sleep-config.c
@@
-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;
}