summaryrefslogtreecommitdiff
path: root/src/timedate
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-07-24 14:12:58 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-07-31 22:48:22 -0400
commit2d37cd5356f666b399c5ae93ce77053f501d0e33 (patch)
tree56eb723c03cec414f8d415336ab014e4196d684d /src/timedate
parent0fbd465f4138dd2c3c7428c23cae117a7b56568d (diff)
Add enable_disable() helper
In this patch "enabled" and "disabled" is used exclusively, but "enable" and "disable" forms are need for the following patch.
Diffstat (limited to 'src/timedate')
-rw-r--r--src/timedate/timedated.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c
index ffec609c69..490929e93b 100644
--- a/src/timedate/timedated.c
+++ b/src/timedate/timedated.c
@@ -637,7 +637,7 @@ static int method_set_ntp(sd_bus_message *m, void *userdata, sd_bus_error *error
return r;
c->use_ntp = enabled;
- log_info("Set NTP to %s", enabled ? "enabled" : "disabled");
+ log_info("Set NTP to %sd", enable_disable(enabled));
(void) sd_bus_emit_properties_changed(sd_bus_message_get_bus(m), "/org/freedesktop/timedate1", "org.freedesktop.timedate1", "NTP", NULL);