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/network/networkd-conf.c | |
parent | sd-journal: add FORMAT_TIMESTAMP_SAFE() (diff) | |
download | systemd-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.c | 4 |
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; } |