summaryrefslogtreecommitdiffstats
path: root/src/core/dbus-timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/dbus-timer.c')
-rw-r--r--src/core/dbus-timer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/dbus-timer.c b/src/core/dbus-timer.c
index e54c473d11..9d823279dd 100644
--- a/src/core/dbus-timer.c
+++ b/src/core/dbus-timer.c
@@ -147,13 +147,12 @@ static int timer_add_one_monotonic_spec(
sd_bus_error *error) {
if (!UNIT_WRITE_FLAGS_NOOP(flags)) {
- char ts[FORMAT_TIMESPAN_MAX];
TimerValue *v;
unit_write_settingf(UNIT(t), flags|UNIT_ESCAPE_SPECIFIERS, name,
"%s=%s",
timer_base_to_string(base),
- format_timespan(ts, sizeof ts, usec, USEC_PER_MSEC));
+ FORMAT_TIMESPAN(usec, USEC_PER_MSEC));
v = new(TimerValue, 1);
if (!v)