diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-07-01 14:32:46 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-07-09 11:03:36 +0200 |
commit | 5291f26d4a6450d1fbf3656640ef20c5e78aa6a5 (patch) | |
tree | 9eb548b3f97f16b6b521c7481fec65e451f600a4 /src/core/dbus-timer.c | |
parent | 5e62ac8b512ee801f92146e1a144c4077a672d8a (diff) | |
download | systemd-5291f26d4a6450d1fbf3656640ef20c5e78aa6a5.tar.gz |
tree-wide: add FORMAT_TIMESPAN()
Diffstat (limited to 'src/core/dbus-timer.c')
-rw-r--r-- | src/core/dbus-timer.c | 3 |
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) |