summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-conf.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-07-01 14:32:46 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-07-09 11:03:36 +0200
commit5291f26d4a6450d1fbf3656640ef20c5e78aa6a5 (patch)
tree9eb548b3f97f16b6b521c7481fec65e451f600a4 /src/network/networkd-conf.c
parentsd-journal: add FORMAT_TIMESTAMP_SAFE() (diff)
downloadsystemd-5291f26d4a6450d1fbf3656640ef20c5e78aa6a5.tar.xz
systemd-5291f26d4a6450d1fbf3656640ef20c5e78aa6a5.zip
tree-wide: add FORMAT_TIMESPAN()
Diffstat (limited to 'src/network/networkd-conf.c')
-rw-r--r--src/network/networkd-conf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/network/networkd-conf.c b/src/network/networkd-conf.c
index 0b55ef29a2..9190dbfc53 100644
--- a/src/network/networkd-conf.c
+++ b/src/network/networkd-conf.c
@@ -29,10 +29,8 @@ int manager_parse_config_file(Manager *m) {
return r;
if (m->use_speed_meter && m->speed_meter_interval_usec < SPEED_METER_MINIMUM_TIME_INTERVAL) {
- char buf[FORMAT_TIMESPAN_MAX];
-
log_warning("SpeedMeterIntervalSec= is too small, using %s.",
- format_timespan(buf, sizeof buf, SPEED_METER_MINIMUM_TIME_INTERVAL, USEC_PER_SEC));
+ FORMAT_TIMESPAN(SPEED_METER_MINIMUM_TIME_INTERVAL, USEC_PER_SEC));
m->speed_meter_interval_usec = SPEED_METER_MINIMUM_TIME_INTERVAL;
}